The lock is in the closed position obviously.
First you need to check the voltages at the transformer. If it's all good then remove the latch and check you're getting the correct voltage there. If that's correct, the latch has seized shut.
You can get these cheap. Any locksmith shop sells...
Inside the latch will be a coil and an electromagnet so when the 24v is sent to the coil it pulls in the electromagnet and thus pulls the latch in thus allowing the door to open.
The battery is just a backup incase of power loss. Otherwise you wouldn't be able to get in or out in a power cut...
I used to fit stuff like this a few years ago. The latch sounds like it's either seized or lost the 24v
There should be a little power supply for the setup or a small transformer. That's your first point of call