That's got to be frustrating to run into a problem on a simple battery change.
Search the forum here...
https://www.google.com/search?q=site:fiestastforum.com+u1007
I thought that would've been a unique experience but apparently isn't. For as much as people fiddle with these vehicles, changing stuff out, guess I shouldn't be surprised.
Without reviewing the other threads, my guess is a weak connection to ground. EDIT Memory serving I think there's also a secondary connection at the positive terminal. /EDIT If the battery tray was fiddled with, the ECU is attached to it. This I've seen, is not uncommon among manufacturers.
(Side Note: Ford unwisely stuck another ground right frick'n beneath the battery tray - the acids will rust this out. Probably an engine/trans/alternator ground. )