2004 Ford Escape Q&A

2004 Ford Escape Question: My escape is running rough it does have high mileage but has been maintain well

The engine act like it was cold but as I drove it the engine light flashed. It acted like it was struggling to increase speed it leveled out and then when I came to a stoplight, it idle roughly. When accelerated it began the roughness again. I had no problems yesterday. Whats going on! -
Answer 1
have it scan tested for codes -