Hi, my name is Ed. Welcome to JustAnswer!.
The problem you're describing is almost certainly caused by a breakdown of the inter-vehicle communication network, called the CCD bus. When you attempt to start the engine, the PCM (engine computer) first looks to the BCM (Body Control Module, where vehicle theft resides) for an OK-to-start message. When it doesn't come, you have early fuel injector shutoff and later, complete disallow of the starter. While this situation could be caused by a number of things, by far -- 100 to 1 basically-- it's a bad solder joint in the instrument cluster.
This solder joint is responsible for supplying a ground source to the cluster, which is a major player in the CCD bus network. Loss of ground causes the CCD bus voltage to be pushed high, beyond what is acceptable for vehicle communications, so nobody can talk to anyone.
Since it's a cracked joint, the possibility of a connection is always present which makes it temperature and shock sensitive. Sometimes just the act of slapping the dash will return the CCD bus to operation and suddenly you can go for a ride. If the bus fails while driving, you'll notice that the gauges will fall flat, but the PCM understands that it's NOT cool to kill an engine once you've started driving, so you won't have any running issues unless a restart is attempted.
Repair is actually pretty simple if you can slog through the act of pulling the cluster out of the dash and soldering up that joint. I have a detailed tutorial that I'd be glad to send if you're the adventurous type. Otherwise, the dealer will be glad to replace the cluster's printed circuit board ($600 for the board, 2.0 hours shop labor, about $800 total).