kinetic energy is depend on temperature as which has higher temperature then it has highest kinetic energy The kinetic energy of a gas is a measure of its Kelvin temperature. ... An increase in temperature increases the speed in which the gas molecules move. All gases at a given temperature have the same average kinetic energy
additional for clarity
A gas will only have more KE than a solid or a liquid if it is at a higher temperature. A gas has more PE than the solid or liquid phase of its own substance. So the water molecules in water vapour have more PE than they have in the liquid or the solid phase, i.e. liquid water or ice. But it's not generally true that the molecules of a gas have more PE than the molecules in a liquid or a solid; it depends upon the materials involved, e.g. upon their melting points, boiling points, specific heat capacities, and their specific latent heat of fusion and of vaporization. E.g. helium gas molecules have less PE than the molecules in liquid glycerine, at the same temperature.