The water molecules in your breath are the gas water vapor. They slow down as they transfer some of their energy to the cold window. The attractions between the slower-moving water vapor molecules bring them together to form tiny droplets of liquid water.