Certainly, an wheel speed sensor can prevent it from working. However, normally that will set an ABS light to turn on and set a code. Also, a faulty brake light switch can cause it.
As far as your question, not any OBD2 scan tool will retrieve ABS codes. Some of the basic ones only retrieve powertrain-related codes. When you look at them, try to find ones that indicate they can read the can-bus.
CAN stands for controller area network. Basically, the different modules are tied together via a few wires. This type of scanner will retrieve codes regardless of the module storing them. Here is a link that shows how it is done.,
Additionally, if there is an engine misfire or a few other things, that can turn the CC off as well. Is the check engine light staying on when the vehicle is running? If it is, stop at a local parts store and have them scan it to see if we find anything that may point us in the right direction. Most parts stores will do it free of charge. Write down any codes they find and let me know what they are.
I attached a pic below of a scan tool from Amazon. It has some CAN reading abilities but may have some limitations. I purchased this exact one for my brother about two years ago and it works well. I just can't promise it will do everything you need because it appears some changes have been done. It does indicate "live data" so you should be able to see the wheel speed at each wheel and determine if one is off or not sending a signal. However, please research that. I don't want to be wrong. LOL
Regardless, let me know if this helps or if you have other questions.
See pic below.
Image (Click to make bigger)
Monday, August 7th, 2023 AT 10:04 PM