In a gas the molecules are moving around in all directions at high
speed. When the gas is heated they move around even faster and hit
the walls of the container that the gas is in more violently. This
increases the pressure of the gas and if the container is flexible
it will expand.
(Remember it is the gas as a whole that expands and not the individual
molecules – they simply move faster and faster.)
