There are strong electrostatic forces of attraction between oppositely charged ions within sodium chlorides giant lattice. The strong electrostatic forces must be broken in order to melt sodium chloride. Significant heat energy is needed to break this attraction.