Will a faulty speed sensor cause the speedometer to stop working?

Yes on many vehicles the speedometer is driven by the transmission output speed sensor signal. If this sensor fails the speedometer may read zero, read incorrectly, or fluctuate erratically. On vehicles where the speedometer is driven mechanically by a cable, a speed sensor fault will not directly affect the gauge reading. Modern vehicles almost universally use electronic speed sensors feeding a digital instrument cluster.