Sodium chloride has a high melting point because of the strong electrostatic attraction between it's positive and negative ions; this requires more heat energy to overcome. All ionic compounds have a high melting point for this reason.
Hope this helps!!