If you compare two glasses with the same amount of water but each at a different temperature, the particles in the warmer water are moving faster than the particles in the cooler water, and the glass of warmer water has more thermal energy than the glass of cooler water.