If that little cable is shot, find out why. Lack of lubrication to push moisture out will seize it up and cause it to twist off........ or
if the bearing behind the speedo gear is shot, the drive shaft may have shifted causing the that little speedo cable to fail also.
Been there