I don’t have my bronco yet so I may be wrong on this. Have you tried using the key blade to rotate the lock/unlock mechanism. It may be sticking which is why it won’t lock.
That’s like a child lock, if you turn it it prevents you from opening the tailgate. You have to manually open it by crawling in the back and pulling a lever.