First check the two fuses that are for the window. One, F12, powers the front switch and F14 powers the rear switch. The front switch only has power when the key is in ACC or RUN. The Other one is hot at all times.
If the fuses are OK, then the next common failure is the safety switch located in the left side latch. Try pushing on that side while turning the tail gate switch. If that doesn't work, try bypassing the switch, you can reach it by removing the access panel, (as you have already done), pull the connector off the switch and install a jumper.
If that doesn't buy you anything, then the problem is probably in the ground return path. the ground returns through the tail gate switch to the front switch and then connects to the Dash ground. Diagram attached.
Good luck,
>-