A liquid requires enthalpy of vaporization to transform into vapor or gas at its boiling point. Here the element absorbs heat from surroundings or heat source.
This energy is used in breaking the forces of attraction among the atoms and molecules of the element. The molecules get separated to higher distances. The energy is converted in to the kinetic energy of the molecules in gaseous form and into the internal energy in terms of the temperature of the gas.