gravity
For a star to form, gravity pulls gas and dust into the center of the nebula. As the material becomes denser, the pressure and the temperature increase. When the temperature of the center becomes hot enough, nuclear fusion begins. The ball of gas has become a star!.