Can someone please tell me how do I know if my ABS pump is bad change my rear rotor and pads my ABS light is on and my brake light is on now can someone please help

Sent from my SM-G925R7 using Tapatalk