Updated:
I'm not trying to give you a hard time, but please confirm what you've tried because you haven't yet confirmed everything I mentioned to try...
Have you tried all of the following? (first make sure you've reconnected anything you disconnected for electrical things)...
- Press and hold for 10 seconds the button on the left-underside of the hatch trim (if your car doesn't have this button, please indicate so) and WAIT FOR TWO BEEPS and then release and hold again for 10 seconds (until it maybe beeps again.)
- Press and hold for 10 seconds the button down and to the left of the steering wheel and WAIT FOR TWO BEEPS) then release and press again and hold for ten seconds and release (or maybe until it beeps...try both ways if you have to.)
- Press and hold for 10 seconds the center-positioned release button just above the license plate (but on the hatch) and WAIT FOR TWO BEEPS, then release it and press again for 10 seconds and I guess wait for a beep. It's possible this button does nothing to reset anything, so if you never hear a beep after the first ten seconds, it's likely not worth pursuing this button as a reset method.
In ALL three instances, try it with the hatch closed, and then try it with the hatch fully opened (even if you have to open it manually) to see if anything changes.
If all three did nothing to solve the problem, I would try pressing and holding the liftgate button on the FOB for 10 seconds, wait for two beeps, then releasing it, then pressing and holding again for ten seconds (here, again, this may not trigger a beep or do anything for a reset.)