Metals can conduct heat or electricity because they have free electrons.
Ionic solids (in the solid state) are rigid, thus the electrons or ions are not free to move about but when they are fused (melted) or dissolved (solvated) then they conduct electricity due to free electrons as well as ions.