Front and side marker lights should be on the same circuit as the tail lights, not the brake lights, but the tail lights. First, check the tow vehicle for a dead fuse. Then check all your marker lights to see if any are working. The circuit should be wired from front to back. If the front ones are working, then the plug and front junction box should be fine. If none are working, check the truck plug first for power, then check the plug and front junction box on the trailer. If some of the front or side lights are working, but not the rear, then the break has occurred somewhere on the trailer between the working lights and non working lights. It is a process of following the wiring from front to back. Another possibility is if the truck plug connector is hot when not connected to the trailer, and then dead immediately after connecting the trailer, then a short may be occurring somewhere in the trailer and tripping a breaker or fuse in the truck. Use a continuity tester to see if the marker light pin in the plug has a short to the ground. A dead short can occur anywhere in the trailer and is much more difficult to find. A broken wire or connector is easier to find.