When the helium is used up, the main sequence star will start fusion of progressively heavier elements which continues until it gets to iron and then stops.
Fusion of the heavier elements greatly increases the outward thermal pressure which causes it to expand into a red giant before the nuclear reactions finally stop when the fuel runs out and the star collapses to form a white dwarf and nebula.