I had something similar happen to my tailgate T, only it would just spin and spin. I took the unit out of the truck and brought it to a locksmith, who fixed it for $5.00.
Get your tailgate down somehow and take the inner tailgate skin off. Once you do that, you will see a C clip that you need to take off and a pin to disconnect for the entire unit to fall out.