Molten sodium chloride conducts electricity due to the presence of:
Free ions
In the solid state, the sodium chloride molecules are bound together by strong inter-molecular forces of attraction.
In the molten state, the crystal lattice structure breaks down and ions are formed, which are mobile and conduct electricity.