When water is heated, the water near the flame gets hot. Hot water rises up. The cold water from the sides moves down towards the source of heat. This water also gets hot and rises and water from the sides moves down. This process continues till the whole water gets heated. This mode of heat transfer is known as convection