The key concept you're looking for is hydrostatic equilibrium. If a celestial body is massive enough, its gravity will cause it to assume the optimal shape which balances gravity and pressure. This is a spheroid.
If I remember correctly, there was an experiment with particles in the space station (wasn't it salt?) and the particles formed together in a spheroid shape.
I thought that planets needed an explosion (shockwave) to be formed out of nebulae... for example an explosion would allow a condensate (not like the boson ones) to be formed -as an origin of initial gravitational attraction- and thus the whole gas around would start "falling" into that and form the planet.
Due to the geometry of a sphere, it's the most favorable (energetically) shape to be formed... of course it's not a perfect sphere (for example the spin makes it more like an oval).