Sometimes if your battery is about to die it will do 'funny' things to the ABS system.
My guess (and it is only a guess) is that flopping around inside the wheel either broke some wires or broke the sensor.
OEM sensors seem to be made out of 'unobtanium' but there is an article on this site about someone who 'retrofitted' a generic one and got it to work.
1993 ST1100 ABS TCS (Early ABS System System) Broken Front ABS Sensor Replacement Clone Honeywell 1GT101DC from Alliexpress Hi, one of the things i have been fearful of with this bike is breaking anything to do with the ABS system or having a modulator fail, in NZ its a requirement if ABS is...
www.st-owners.com
It's ABSI but the sensors are the same as ABSII IIRC.
Happy Bikes in the UK used to provide 'upgraded' ones.
I just sent them an email to see if that is still the case.