1) Disconnect the connectors from the ECM.
2) Measure the resistance of harness between ECM and brake switch connector.
Connector & terminal
(B136) No. 12 — (B65) No. 1:
Is the resistance less than 1 Ω?
Repair open circuit in harness between ECM and brake switch connector.