Everything is made of particles that never stop moving. In a solid they jiggle in place; in a liquid or gas they also wander and collide. The energy of all that random motion, added up over every particle, is the object's thermal energy. Temperature measures how fast the particles move on average, so a hotter object has faster-jiggling particles.
Because thermal energy is a total, size matters. A cup of tea at 80°C has faster particles than a backyard pool at 25°C, but the pool holds hundreds of thousands of times more water, so it holds far more thermal energy. The material matters too: it takes about 4,200 J to warm 1 kg of water by 1°C, but only about 900 J for 1 kg of aluminium. That is why an aluminium pan heats up faster than the water inside it.
Thermal energy is not the same as temperature or heat. Temperature, in °C or K, tells you how fast the particles move on average. Thermal energy, in joules, is the total energy of that motion. Heat is thermal energy moving from a hotter object to a cooler one; an object stores thermal energy, but it does not 'contain heat'. If a question asks how hot something is, it is about temperature; if it asks how much energy, it is about thermal energy.
Think of it like this. Imagine the noise in a room full of people. Temperature is how loud each person is on average; thermal energy is everyone's noise added together. A few people shouting (a hot cup of tea) can make less total noise than a huge crowd talking quietly (a lukewarm swimming pool). Unlike a quiet crowd, particles never fall completely silent.
Core idea. Thermal energy is the total energy of an object's randomly moving particles; temperature tracks their average speed, so a big cool object can hold more thermal energy than a small hot one.