When we bought the truck, we could only open the tailgate by shoving both hands into the tailgate housing and spending three minutes carefully tweaking the control wires, then attempting to catch the free-falling tailgate with something other than your face. This process worked about 60% of the time. The mechanic quoted me $80 for the new latch plus labor, and I *think* I suppressed my giant eye-roll until I was back in the car.
Here’s the $17 replacement part and the helpful installation video that I followed. Seriously, it took longer to round up the tools than to install the new latch. The most exciting part is prying off the spring clip that holds the lock tumbler in place. Fliiiiing! Be prepared.
The interior latches on the sides of the tailgate also needed a squirt of lubricant before closing up the housing. One more small repair to check off the list.