The absorption of electromagnetic radiation by water depends on the state of the water.
The absorption in the gas phase occurs in three regions of the spectrum. Rotational transitions are responsible for absorption in the microwave and far-infrared, vibrational transitions in the mid-infrared and near-infrared. Vibrational bands have rotational fine structure. Electronic transitions occur in the vacuum ultraviolet regions.
Liquid water has no rotational spectrum but does absorb in the microwave region.
The water molecule, in the gaseous state, has three types of transition that can give rise to absorption of electromagnetic radiation
In reality, vibrations of molecules in the gaseous state are accompanied by rotational transitions, giving rise to a vibration-rotation spectrum. Furthermore, vibrational overtones and combination bands occur in the near-infrared region. The HITRAN spectroscopy database lists more than 37,000 spectral lines for gaseous H216O, ranging from the microwave region to the visible spectrum.
In liquid water the rotational transitions are effectively quenched, but absorption bands are affected by hydrogen bonding. In crystalline ice the vibrational spectrum is also affected by hydrogen bonding and there are lattice vibrations causing absorption in the far-infrared. Electronic transitions of gaseous molecules will show both vibrational and rotational fine structure.