What controls whether water is a gas, liquid or solid ice

ever think of temperature?