you cant just fix the sensor. the whole wheel bearing/hub assembly needs replaced on the bad side. take it to a brake shop and they will tell you which one is bad. then go to autozone and buy a new hub assembly. get the Timken, which is more expensive, because the bearing is smoother, the sensor is MUCH BETTER quality, and its made in the USA. the chinese bearings will go bad within the year you purchase them if your not EXTREMELY careful around potholes.
one last thing, unplug your wheel speed sensors and the car will act normal. you will no longer have abs or trac control and the trac/abs lights will stay on. the brakes and gas pedal will function the old fashioned way, but at least you wont end up rearending some poor bloke because your ABS was keeping you from stopping.