Atoms of elements can lose or gain electrons making them no longer neutral, they become charged. A charged atom is called an ion. When an atom loses electron(s) it will lose some of its negative charge and so becomes positively charged. A positive ion is formed where an atom has more protons than electrons.
Because the electrons in this ionic compound arent free to move and so cannot carry charge. For an iconic compound to conduct electricity it must be a liquid, either in a molten form or dissolved in water.