Explanation:
Metals in their solid form contain free electrons( mobile in nature), these free electrons are responsible for electricity conduction in solids metals.
Whereas in ionic compounds ions are stationary and they do not conduct electricity, however, their when dissolved in water, their ions dissociate and they start conducting electricity.