In ionic compounds, electricity is conducted by ions. In solid state, ions are held together by strong electrostatic forces and are not free to move about within the solid. Hence, in molten state or in solution form, the ions are free to move and can conduct electricity.