Then, for millions or billions of years, they produce energy, heat and pressure which (an balance the inward pull of gravity.
(they; produce; energy, heat and pressure; T:Then)
they
produce
energy, heat and pressure T:Then