Water is a gas when it is steam. It condenses to liquid, becoming water. It becomes solid when it freezes, and then becomes liquid again as it melts. The entire process depends on temperature. The molecular structure of water does not change throughout all these changes.