The correct response is:
The remaining materials from the sun's formation clumped together due to gravity.
This answer reflects the widely accepted theory of planetary formation, which posits that after the Sun formed, the remaining gas and dust in the protoplanetary disk coalesced through gravitational attraction to form planets.