Electrified mortise lock.
Presenting a credential to the reader powers the lock. Clicking should allow the handle to turn and retract the latch. With everything apart, I have no idea if the handle will turn when the lock is energized.
Put the lock back together and test it, or give us a description of the problem.