Can you explain how attractions between molecules could cause polar water to have a higher boiling point than a non polar carbon dioxide?

If the molecules are attractive to each other, it takes more thermal energy to overcome these cohesive forces.