start by cleaning all grounds to the frame. battery to frame, motor to frame, frame to dog house. tail lights to frame. remove any add on trailer light harness. check all the lights on the truck. check the wires from the plug to the tail lights. confirm the plug is working fine no grit or grime inside.
then from there keep working back untill you find the fult.