Okay, so so you got two forces acting on a star. Gravity trying to compress it, and the internal pressure, caused by fusion, pushing it out. For the star's life they are at equilibrium, but the star dies when it runs out of nuclear fuel. Then why do some stars explode? Shouldn't they all collapse?