Volvo V40 boot lock ( tailgate ) do not lock

Hello! Have bought a V40 Kombi built in 1999. Had to find out that the central locking the trunk does not lock that means the trunk can be opened even if the central locking. Therefore I ordered the lock again (not cylinder) When I changed I had to find that left cables were removed at the lock and was insulated with adhesive tape. Now I have it connected again. The head office now goes when I close out immediately again. When I have put everything back in original condition now the lock of the tailgate is not locked anymore! What do I have to do? Help