Lighting problem

We need wire colors you are seeing, and look if this matches what you have

The wires, top to bottom in this diagram are just what they say

18W (white) STOP LAMP should be power coming into the switch from your stoplight switch

18BR (brown) power going OUT of the switch to right rear stop/ turn

18GN (dark green) power out to left rear stop/ turn

18R (red) power coming INTO switch from signal flasher

18P (purple) power coming INTO switch from hazard flasher

Make sure the switch is centered, make sure the hazard switch is off, and you should get continuity from the top (white) to both brown and dark green

It is VERY common for the hazard section of the switch to fail and cause the brake lights not to work, but leave the signal flashers functional