How to stop hot air from engine compartment?

Heater temperature control cable probably stuck and not closing the door inside the heater box fully.
or the heater valve in the engine compartment is not closing and letting the hot water flow though the heater core