Fuse 36, a 10 amp fuse in the power dist panel under the hood (loosen PDP from engine to gain access), routes power from the tail light relay (active when tail lights are on, and lights truck tail lights) to Trailer Tow Relay #1, and on to the red wire at the 7-pin.
For that matter, Trailer Tow Relay #2 routes hot power from a 30 amp fusible link to the wht/blu wire on the 7-pin, that is your 12V+ for the trailer.
There are two more relays to be concerned about, Left and Right Trailer Turn Relay. Both energized by turn signal, and route power from fuse 60 in the fuse and relay box. It is a 15 amp fuse. The outputs of these relays also go to the 7-pin.
The above count for 4 of the 7 pins. The others are ground (blk), electric brake output (brn/wht) and backup light signal (yel/blk). The last is seldom used for backup lights but can sometimes be used for a backup camera.
The following diagram is from the Haynes manual #72070, Nissan Titan 2004 thru 2014. Got it at an major auto shop, money well-spent.
Here's as much of the wiring diagram as I could upload: