If you have two things not working at the rear, then it’s very likely the electrical cables where they enter the tailgate at the top right. These go through a lot of movement with opening and closing of the tailgate - and it’s not abnormal for them to break at this point.