In gases the particles move rapidly in all directions, frequently colliding with each other and the side of the container. With an increase in temperature, the particles gain kinetic energy and move faster.