I was hoping a little more detail showing the actual wiring.
I would suggest disconnecting the brake altogether and get the ESC running right. Then hook the brake up and adjust that (it will mostly be horn repositioning... mechanical adjustments like that).