First the water is boiled in the left flask, which drives out the air and fills it with steam. When the heat is removed, the steam condenses, leaving a vacuum and so the blue water from the right hand flask is forced into it. This is the basis for how water was once pumped out of coal mines.
...
https://www.youtube.com/watch?v=1UDJv93btEg