I had an issue with something similar. The car would not accelerate past ~30 mph. I had a broken wire to a sensor near the front wheel (passenger, but sensors are near both wheels, not on the hub).
It was intermittent (sometimes car would run fine, then slow down), only because the wire would make/break contact.