Most likely is door lock solenoid has failed. Seperate open and lock solenoids. Fail after time. They are part of door lock assembly and best to replace whole thing. That is, the catch mechanism on the end of the door held by torx screws.
Not worth using second hand, they will not last any longer than yours and whilst the job isn't hard, it is fiddly. Rave manual covers it well.