brake problem

My brakes fail and restores again. I notice that when this happens the ABS unit is very hot. When the ABS unit is cool the brake works again.The ABS yellow light has been on for a very long time now but the brake fails just started. never worked on the master/servo systems before. Car is above 230k kilometers. What can I do?? Thanks.