Why does gravity affect them again?
If water molecules are in liquid and solid state then gravity affects them but in case of gas then why does gravity affect them again?
Due to Density and Inter molecular forces between gaseous substance, Gravity reduce not zero
Water has a higher density in liquid and solid forms than in gas forms, and the principle is that the higher the density, the greater the effect of gravity, as is the case with black holes.
When water heats up, the force energy between its molecules weakens and thus affects both their density and state.
You may have noticed that cold air always travels from top to bottom and warm air from top to bottom, this is also due to density.