Alcohols have higher boiling points because the hydroxy group can hydrogen bond with the hydroxy group of neighbouring molecules which increases the strength of the intermolecular forces significantly thus more energy is needed to overcome them, whereas alkanes only have weak van der Waals forces between molecules.