Why can sodium chloride conduct electricity?
Because it's an electrolyte.
Electrolytes in water solvate into their respective ions, in this case:
Sodium chloride as a solid is not a good conductor of electricity until it has been dissolved in water or has been melted to become molten
The dipoles in the water separate the
But before you run out and replace your house wiring with tubes of sea-water, you should know that the chemical reaction producing the conduction of electricity is limited by the concentration and availability of
There is more information here under electrochemistry: