ABS light comes on and front brakes lock on 1998 BMW 740i

sometimes i drive and the car is fine and other times i get in and my 1998 bmw 740i brakes lock up and my abs light comes on as well as the traction control light. any suggestions?

Asked by for the 1998 BMW 740i