The gravitational pull of the Sun the interstellar dust attracting heat away from the protosun the process of nuclear fusion the nebular cloud condensing.
The sun is a hot ball of glowing gases which is a star whose gravity holds the solar system together and also keeping all the planet and smallest particles of debris in its orbit.