1) Turn the ignition switch to OFF.
2) Measure the resistance between the speed sensor connector and the engine ground.
Connector & terminal
(B17) No. 2 — Engine ground:
Is the resistance less than 10 Ω?
Repair the wiring harness.