Thermal energy is the energy that comes from heat. This heat is generated by the movement of tiny particles within an object. The faster these particles move, the more heat is generated.
Easy way to think of the difference between thermal energy(heat) and temperature: A swimming pool and a cup of water can have the same temperature but the pool will have much higher thermal energy (heat).