Anti lock brake light
From the symptoms you're describing, it sounds like your right side sensor wire is either loose, or you're having problems with the sensor wire coming completely off. It would help me if I knew what year, make, and model this...