Three students were injured while doing an experiment involving potassium nitrate and sugar, Cumberland County Schools spokesperson Renarta Moyd said.