Its most likely the central door locking motors in the respective doors.
Easiest thing to do first would be to remove the door cards on the rear doors, and then with a voltmeter check you have power to the door locking motors. If there is power, but they are not operating they're likely stuffed.
That said, its entirely possible the linkages have come loose, or the motor is loose and as such the full movement isn't able to happen and the doors aren't locking.
If the motors are working, you will see this very clearly with the door card and door membrane removed. If they don't move at all, but have power they are knackered and need replacing...
You'll find plenty in the scrapyards these days.