By your description, you have confirmed the thermostat is working.
That leaves a couple of other suspects to investigate:
Feel the heater hoses in engine compartment if one is hot and other cool try flushing heater core.
is this a windstar minivan? in colder climates many cars have a block heater to make them easier to start in winter , if it is a male electrical plug in or near the engine compartment that's probably what it's for
The block heater plug in on a 1998 Ford Windstar is in the engine compartment on the passenger side of the vehicle. When lifting up the hood, look on the left for a small hose that is coiled up at the very front, above the passenger headlamp. The block heater itself is plugged into the front of the motor on the passenger side.
This "flap" is the temperature blend door which directs air over & through the heater core.The "Related Questions" below are intended to help explain some of the basics of Windstar heating/cooling functions and terminology.That should help in the investigation of the specific problem on the vehicle, and ultimately leading to a fix.Start with the "Where is the heater control valve located on a Ford Windstar" question and then move on to the "What could cause a Windstar to have no heat - or not be able to adjust the temperature"
Your heater may be turning off due to a variety of reasons, such as a clogged air filter, a malfunctioning thermostat, or a problem with the ignition system. It is important to troubleshoot and address these issues to ensure your heater functions properly.
Turning on the heater allows the hot water and coolant to enter the heater core.The heater core is really just another radiator designed to extract the heat in the coolant and pass it on into the air surrounding it,in this situation the driving compartment,thus dropping the temperature of the coolant,thus cooling the over heating engine.
For a Windstar, a common problem is a failed temperature blend door motor - actuator. See "Related Questions" below
heater windstar ford
Basically behind and below the glove compartment , you can see where the heater hoses connect to the heater core at the firewall from the engine compartment
Heater circuit fault
15.0 liters ( 15.9 quarts ) according to the 2001 Ford Windstar Owner Guide - cooling system capacity with rear heater
Behind / below the glove compartment area inside a plastic case . You can see where the heater hoses connect to the heater core at the firewall in the engine compartment