Every substance has a particular amount of energy due to which the structure of a substance remains stable.A substance undergoes a chemical reaction when its energy is changed.The change in the energy of a substance takes place by absorbing or releasing heat or light.