They both help to keep all of the gas and dust in place and not just float off. it evolved from a solar nebula. stars were created in the solar nebula and they would attract gas and dust and became bigger and bigger.
The answer is: Gravity
Attraction to the earth, if there was none we would be floating
Because there is nothing to hear