What is the water pump used for in a car?

To circulate coolant through the engine block, radiator and passenger compartment heater core.