Explanation:
A massive concentration of interstellar gas and dust created a molecular cloud that would form the sun's birthplace. Cold temperatures caused the gas to clump together, growing steadily denser, gradually to form the sun.