As I mentioned earlier, the speedometer works by converting pulses into current to magnetize the coils in the meter movement, deflecting the needle. These same pulses control the motor that turns the numbered wheels in the odometer and tripmeter.
Your description of the problem makes it sound pretty consistent. That is not the way loose connections work, if that was the problem, the speedometer would be going to zero at more random speeds, and would actually work properly from time to time.
I asked if the odometer and tripmeter worked when the speedometer went to 0kph. I think you said they stopped working at the same time as the speedometer. If that is the case, the problem can be in one of two places; either the sensor at the final drive or the signal amplifier in the instrument cluster. It's easier to imagine a failure in these parts creating a more consistent problem.
I would consider trying a different speed sensor first since it is the source of the pulses necessary to make things work. It's also the least expensive and easiest part to replace.
If that doesn't get things working, the problem is probably in the signal conditioning electronics in the cluster. Unfortunately, I don't think there is any information available on these circuits that would make it possible to troubleshoot them. The only option would be to replace either the cluster of just the speedometer mechanism. Fortunately, there are a fair number of used units available in places like eBay.