The formation of spherical blobs of water in space is because of surface tension. This is only exhibited because it is a liquid. However at the astronomical scale, the gravity of a sufficiently large object will eventually turn it spherical. This has got to do with the fact that a sphere has the smallest surface area to volume ratio of all 3-dimensional shapes.