Sodium chloride and sodium chloride crystals in its electrical conductivity?

Solid sodium chloride is not an electrolyte.
Sodium chloride in water solutions or molten sodium chloride are electrolytes.