I tore my tailgate apart the first time it happened to me thinking it was a broken rod or tab. it was all good in there.
All it needed was to be closed all the way. There is a small bumper on the lower corner of the frame when the tailgate gets shut. It it isn't closed enough the handle won't operate. Give it a little shove in the bottom corner and see if that fixes it.