Hi, You probably have a broken wire where the wires come out of the body, and enters
the tailgate, opening and closing the tailgate over the years takes its toll on the wire! repair should be straight forward, pull out the rubber flexi hose, and rejoin the broken wire, solder and heat shrink insulation is the best way to go.. if not then use crimped connectors, but avoid scotch locks
Hope this helps
Tom