Vectra 2.5 V6 S plate - Can't lock the doors. - Bazzwhite180

First time post.
I have just purchased a second hand Vectra 2.5 V6 (S Plate). It was a cheap car that had a few problem which have been fixed apart from one thing "I can lock the doors". It looks like the car was broken into at some point. So, the key i have starts the car from the ignition fine. The central locking does not work and I've tried resetting (put key in ignition and hold button on key)Also, the door lock is damaged so cant lock manually.

Any help with the best way to fix it i.e can i just swap the door lock? Do i need a new lock, ignition and key?

Many thanks