Overheating in heater blowing cold air

I have a 2005 Ford Explorer its overheating I put a new thermostat in it and it still doing it and my heater blowing cold air I flush the system and still have the problem can somebody please help me or guide me in the right direction on how to fix this
0