First thing to check would be the speed sensor mounted in the transmission casing - these do occasionally fail - it lives in a fairly hot area - good thing is that it's not expensive or difficult to replace. Part No is XR3Z-7H103-AB and it's about $50.
Second thing (and realistically more...