When water is placed in a balloon, the balloon can be placed over a flame without popping. Water absorbs the heat from the flame, so the rubber of the balloon does not become weak and break like it does with the dry balloon.
Hot water expands so it is less dense than room temperature water. Cold water contracts so it is more dense than room temperature water. The red hot water rises and the blue cold water sinks.
When a small amount of water is heated inside the can, steam is produced, filling the can. When the can is inverted into cold water, all of the steam condenses quickly causing the can to implode.