Answer:
Nuclear fusion and gravitational contraction
Step-by-step explanation:
In stars, there is an equilibrium between two forces, the force of gravity in the inward direction due to their own mass, and the radiation pressure in the upward direction as a consequence of the nuclear reaction in their core, that is known as hydrostatic equilibrium.
The radiation pressure is gotten from the nuclear reactions at the core (when lighter elements fuse into heavier elements), but if the nuclear reactions stop, hence, the radiation pressure will also do it and the force of gravity will overcome and break the equilibrium.
Both of that energy sources help to maintain a star's internal thermal pressure, since the contractions of the superficial layers will increase the density at the core.