^^ Yes i was going to also mention to check all fuses in my 1st post - but i was hoping that the op may have already looked at the basic's etc.
To me the problem could / should only be 3 main possible items = (1) = Battery connection / low voltage problem. (2) - You have not correctly re-fitted the ECU connection, as in bad connection or damaged pins. (3) = Power surge / spike upon ECU connection & causing either a re-set / re-learn of ECU - as in now doing the battery disconnect, or a blown fuse, or a internal failure of the ECU due to power surge etc.
I'd not suspect that the ECU would be that fragile to a simple disconnect / reconnect, so i would be more so suspecting possible problem #1 or a blown fuse. ( ECU would be more likely to spike or need a re-learn if you did the disconnect / connect with the ignition on etc ).
Also do you know how to access the DIAG mode to do a function "61" fault code check ? ( And also function "62" DTC clear ).
( I recently found a good write up about how to get start to finish mode access & clear codes etc on a google search - will try to find it again & link it here if needed ).
Cheers.