Please help, my tailgate keeps unlocking while the handle or remote doesn't work.

I've disconnected the lock from the loom, but not very practical.

How can i fix this ?