They can directly collapse to a black hole, they can become core-collapse supernovae, they can be torn apart by tidal cataclysms, they can be subsumed by other, larger stars, or they can die gently, as our Sun will, by blowing off their outer layers in a planetary nebula while their cores contract down to form a degenerate white dwarf. All of the forms of stellar death help enrich the Universe, adding new atoms, isotopes, and even molecules to the interstellar medium:
molecular gas clouds that are contracting and fragmenting, leading to protostars and young stellar objects, becoming full-fledged stars with protoplanetary disks around them, conventional stars burning through their fuel with their own fully-formed planetary systems, stars evolving into subgiants, giants, and even supergiants, stars dying in planetary nebulae, supernovae, and other life-ending events, and stellar remnants of now-extinct stars like white dwarfs, neutron stars, and black holes.