Very likely the speed sensor is bad. Also be sure to check the magnet on the end of the motor shaft and make sure it’s not broken. It’s usually a good idea to change the magnet when you replace the sensor.
For replacement parts give Tahoe a call at his shop, Revolution Golf Cars. Excellent customer service and you’ll get the best quality parts.