The answer here is ionic compound, because they dissociate in water to form ions that conduct electricity well through the solution.
Molecular compounds and nonmetallic elements tend to be poorer conductors, while metallic elements are good conductors in the solid phase.