Remove the multi-connector plug from the leads and refit them to the new motor with push-on terminals. Plug the outlet stub of the old motor - a brass woodscrew makes an ideal plug.
Cars with electrically operated windscreen washers sometimes have a switch controlling the motor...