Check the fuses in the fuse box under the hood. Your owners manual has the location of the fuses. There are fuses for the turn signal, brakes, ect for the trailer that are separate from the tail lights on the truck. That is why the tail lights stay on when the trailer lights go out. I have had to replace one before and spent hours checking connections on trailer when it was a fuse.
_________________________
Mitch