If the drivers door lock has stopped working on the remote, then chances are that the problem with the tailgate lies there aswell.
I've posted up door latch tests in a downloadable document, so worth checking that. If it's just the door lock that has stopped working, then it is likely to be an isolated issue with the door latch or wiring from the outstation to the latch. If the window and mirror have mysteriously stopped aswell, then it could be a problem in the wiring to the outstation, as the window, latch, and mirror information are all transmitted on a serial link from the BECM to the outstation, and this then sends the individual commands to the latch, window and mirror...
But if either the window or mirror are working, then the serial link is OK, and the issue is isolated to the latch itself or the short bit of wiring loom from the outstation to the latch.
Hope that helps,
Marty
'06 4.2 Supercharged Black/Cream "Jess" -- Bought April 2021 (NZ)
'01 4.6 Vogue Black/Lightstone "Snog" -- Bought Jan 2012
'99 4.6 HSE Cobar Blue/Lightstone -- Sold March 2009
'95 4.6 HSE Epsom Green/Tan -- Traded June 2008