Lets get a volt meter and check some sensors. Get a reading of the throttle position sensor while key on, engine off. Readings from tps while throttle closed should be .97volt to .99volt and wide open is 4.5v to 5v. If not, rule out inconsistent readings checked at open/close multiple times to see if same readings produce..... you are now troubleshooting to see if the tps is failing. There are many ford tps settings youtube videos, give them a look over for a general idea.
Now check the voltage and ohms of the engine coolant temp sensor. Pull the plug of the ECT sensor and probe the terminals with meter on ohms setting. Then key on/engine off ECT plug installed, get a voltage in and out reading from the sensor Use these charts and compare readings.
View attachment 50170
View attachment 50171