Temperature is the measurement of the average energy of the particles in a solid, liquid or gas and thermal energy is the total energy in a set amount of solid, liquid or gas. Therefore, the temperature and thermal energy is not the same thing. They are both about the particle theory, which is a theory that all particles of solid, liquid or gas are always in motion. But the difference between the two is that temperature is the "measurement" of the particles in a solid, liquid or gas and the thermal energy is the total energy in a set amount of solid, liquid or gas.