ABS Brakes hard pedal on 1994 XJS 6

Hard brake pedal, pump works with direct connection but not when car running, I’m assuming there must be a sensor that needs attention, I replaced the relay from another working xjs (parts car I have)