The power wire that feeds the Hazard flasher also feeds the brake light switch, according to the wiring schematic that should be a pink wire.
If the Hazard flasher works , there has to be a problem with the pink feed wire going from the Hazard flasher to the brake switch.