It will always start in the nebula and that is where a small star is born.
Then once it is born it will eventaully turn into a protostar which is a contracting mass of gas which represents an early stage in the formation of a star, before nucleosynthesis has begun.
After it turns into a prototar in then goes through nucular fusion which is Nuclear fusion is a reaction in which two or more atomic nuclei are combined to form one or more different atomic nuclei and subatomic particles.
Then after it goes through nucular fusion it then turns into a main sequence star which is the main sequence is a continuous and distinctive band of stars that appears on plots of stellar color versus brightness
Then after it turns into A red giant star is a dying star in the last stages of stellar evolution. In only a few billion years, our own sun will turn into a red giant star, expand and engulf the inner planets, possibly even Earth
After that it turns into a A planetary nebula is created when a star blows off its outer layers after it has run out of fuel to burn. These outer layers of gas expand into space, forming a nebula which is often the shape of a ring or bubble.