Have Toyota Questions? Ask a Mechanic for Answers ASAP
Hello and welcome to just answer. I value your input to my questions so I can help you better. First we have to determine if it is indeed an electrical problem or mechanical. First remove the rear door panel to access the latch mechanism , disconnected the connector to the latch and see if that allows you to close it. while your doing that examine the latch for anything jammed in it and if it needs lubing, also if the spring is still in place on the inside of it's mechanism. Let me know what you find up to that point.
I'll send you a video on it's operation just in case your missing something. If you removed the battery connection you may have to re initiate the hatch. Procedure should be in your owner's manual. https://www.youtube.com/watch?v=1hYTdw-7fbM
lift the hatch to the full open position and press and held the button at the bottom of the hatch. Beep 4 times and will reset. Hatch should function normally.