The correct response is:
The remaining materials from the sun's formation clumped together due to gravity.
This describes the process known as accretion, where dust and gas left over from the formation of the Sun coalesced to form the planets in the solar system.