If the truck battery or the key fob battery get too low in voltage, it could cause this as well. My truck had a bad battery from the factory and all sorts of systems stopped working when the voltage got low (FCW, AutoStop, Stereo, etc.).
My tailgate stop opening once but also the driver door...