Check the speed sensor harness for damage which could cause a short or open circuit.
Also check the terminals to make sure they are secure and not loose.