covalent bonds between atoms forming molecules with weak attraction between molecules and has a low boiling point
Sodium chloride:
Electrostatic forces of attraction so there’s strong bonds in all directions between oppositely charged ions forming giant lattice and large amounts of energy needed to break bonds high melting point