Potassium bromide cannot be electrolyzed when solid because it is an ionic compound. In order for electrolysis to occur, the compound must be in a molten state or dissolved in a solution so that the ions can move freely. When potassium bromide is solid, the ions are held tightly in place by the strong electrostatic forces between them, and they cannot move freely enough to be electrolyzed.