It can go through the all the states: solid, liquid, and gas.
On the ground, it is a liquid as water. Then, it evaporates and becomes water vapor, a gas. As it condensates, little droplets of vapor come together. Then, it falls to the Earth as liquid water or frozen as solid snow/sleet/hail in precipitation.
Hope this helps!!