1999 dodge 1500 4x4 and the heater doesn't get hot until it has been driven for a long period of timebut when you stop it and park the air gets cold until you revup the motor Is it the water pump or?

before going to the water pump try changing the thermostat and then giving the cooling system a flush. the thermostat will be located at the engine end of the upper rad hose. good luck