When an electric current is passed through the solution, these solvated ions can move freely towards the oppositely charged electrodes. The positively charged sodium ions (cations) move towards the cathode (negative electrode), while the negatively charged chloride ions (anions) move towards the anode (positive electrode). This movement of ions constitutes an electric current flowing through the solution.
Therefore, the presence of freely moving ions in the solution allows ionic compounds dissolved in water to conduct an electric current.