Why does Car heater only works while driving?

Most (not all) cars are heated by the engine. When fluid moves through the engine it heats up. This fluid moves through the heater core, a fan moves air over the warm heater coils blowing warm air out to the cars cab.