Thermal Energy and Equilibrium