how does the compound type (ionic, polar, non-polar) correlate to its properties (melting/boiling points)?

I have a feeling it's something related to the forces acting on them but I'm confused around how.

Haven't I answered this before?