The correct response is:
The remaining materials from the sun's formation clumped together due to gravity.
This reflects the widely accepted theory of planetary formation known as the solar nebula hypothesis, where dust and gas in a protoplanetary disk around the young sun coalesced under gravity to form planets.