Straight-chained alkanoic acids and alkanols have higher boiling and melting points than alkanes, since they have polar functional groups (such as -OH and C=O and COOH). As a result, these polar functional groups, molecules of alkanoic acids and alkanols are joined by intermolecular forces such as hydrogen bonding, permanent dipole-dipole forces, while molecules of alkanes are bonded simply by weaker dispersion forces. Hence, greater energy is required to break (for boiling pt) or weaken(for melting pt) intermolecular forces between molecules of alkanoic acids, and alkanols, in comparison to alkanes. Therefore, alkanoic acids and alkanols have higher bpts and mpts than alkanes.
Alkanoic acids contain an extra polar C=O (carbonyl) bond within their molecules, in addition to a polar hydroxy group, which is present in alkanols. As a result, alkanoic acids are slightly more polar than alkanols, thus leading to stronger permanent dipole-diple forces, and more extensive hydrogen bonding between molecules of alkanoic acids, than the intermolecular forces in alkanols. Hence, greater energy is required to weaken and break intermolecular forces in alkanoic acids, than in alkanols, hence the higher boiling and melting points in alkanoic acids, than alkanols.