Ions in ionic compounds are not free to move in solid state, hence they can not carry electric current.
Ions in ionic compounds are relatively free to move in aqueous solution, therefore, aqueous solutions of ionic compounds are highly conducting in nature.