If it has an led display then you have an electrical issue. If the speedo is a mechanical display (actual needle moving around) then you have a speedo cable to deal with. I am not an electrical wizard but have replaced a speedo cable on a few occasions. Let us know which type you have.