(i) In the ionic compounds, the electrical conductivity is due to the mobility of ions. Since the ions can hardly move in the solid state, ionic solids are poor conductors of electricity.
(ii) When the ionic solids are dissolved in water, the ions get separted and acquire mobility. As a result, they become good conductors of electricity.