Motors are paired with impellers so if you replace the motor, you must use exact braking HP to determine the replacement (HP * SF). Otherwise, the motor could be overloaded or underloaded.

Also, because the rest of the parts are 20 years old and probably need replacement as well, if it were me, I would replace the entire pump.