Individual stars, including the Sun, do not stay the same forever. Stars form when enough dust and gas from space is pulled together by gravitational attraction. Smaller masses may also form and be attracted by a larger mass to become planets.
Fusion processes in stars produce all naturally occurring elements. These elements may be distributed throughout the Universe by the explosion of a star (supernova) at the end of its life. We know our Sun is not a first genteration star because it contains trace elements for example Magnesium and Oxygen, while the early Univers only contained Hydrogen.
If it is massive enough then not even light can escape its gravity and becomes known as a