In the solid phase the ionic lattice has no mobile ions as all the ions are fixed in place. However when dissolved in a solution or in the molten phase, the ionic lattice breaks down allowing the ions to move and carry charge. This allows the conduction of electricity.