A substance can only conduct electricity if it contains charged particles that are free to move around. In solid NaCl, there are ions but these ions are locked into the ionic lattice and are unable to move.
NaCl is solid in state and solid ions or compounds does not conduct electricity.