How do I figure out why the antilock brake light is on and they don't work and the brake light comes on every now and goes back

Describe your problem in detail.