In space, there is no pressure. However, this pressure is critical for most liquids to remain in a liquid state because with no pressure, the temperature at which they start to boil drops. Water boils when there is no pressure. This means that in the vacuum of space, a cup of water would boil into a vapor before it can freeze. It would eventually freeze, but it would – desublimate – or vaporize into a gas first, then turn directly into a solid.