The other day I was driving and every light on my dash came on. My rpm gauge doesn't work sometimes and tonight my spedometer said 0 while I was driving. Sound familiar?
Kinda hard to answer without knowing even what car....? But from the limited information you gave it may be the ignition switch. Familiar? No.
Its a 2003 trailblazer. The entire thing seems to be a real winner.