When helium burning ends, when hydrogen burning ends, the Sun no longer will have nuclear fuel to keep it going, and it starts collapsing. The nuclear fires would be out, but a huge amount of gravitational potential energy would be converted into heat, creating a white dwarf star.