Sounds like the wire you took of is for the wheel speed sensor. The wheel speed sensor is located in the hub and there is a connector that comes out of the hub and connects to the wire that is on the vehicle side.
This controls the ABS functions for the wheels. It detects wheel lockup and sends that data to the ABS module.
I have attached diagrams for your reference.
Please let me know if you have any questions.
Images (Click to enlarge)
Wednesday, October 20th, 2021 AT 9:29 PM