I NEED HELP!!

Why do alcohols and carboxylic acids have a higher boiling point than hydrocarbons and halocarbons??

Also, I also need my previous question answered about compounds and functional groups.