In the solid state the ionic compounds do not conduct electricity because in solid there is no free electron and also there is no probability for the formation of ions. So ionic compounds do not conduct electricity but if the ionic compounds are in molten state then the ionic compounds form ions and therefore these ions are responsible for conduction of electricity.