The motor and the pump are usually a single unit, the pump being a simple device. If the non-return valve and the hoses are sound, the old motor can simply be bypassed.
Cars with electrically operated windscreen washers sometimes have a switch controlling the motor...