The Formation of the Sun: From Nebula to Star