The second law of thermodynamics states that the total entropy of a system either increases or remains constant in any spontaneous process; it never decreases. ... This is because entropy increases for heat transfer of energy from hot to cold (Figure 12.9).
Chemical potential energy is the energy stored in the chemical bonds of a substance. The various chemicals that make up gasoline contain a large amount of chemical potential energy that is released when the gasoline is burned in a controlled way in the engine of the car.
As thermal energy increases, there is more particle movement. As thermal energy increases, there is more particle movement. As thermal energy increases, there is less particle movement.