As water is heated and reaches its boiling point, the particles gain kinetic energy as the temperature increases. When the water boils and transitions to steam, the particles must also overcome intermolecular forces, which results in an increase in potential energy. Thus, the correct response is:
The particles gain both potential and kinetic energy.