The strong electrostatic attraction between the oppositely charged ions need a high energy in order to break the strong electrostatic attraction which makes these ionic compounds have a high melting and boiling points
It's difficult to dissolve ionic compounds in polar solvent like water because the hydrogen bond to the negative ions whereas the oxygen bond to negative ions which breaks the ionic compound