I had a truck that had a wiring problem within the ignition due to the bozo that installed the antitheft starterkill for the alarm.
Also had the starter go, like others. Replacing contacts is always a good idea. Quick, simple, cheap, and a very common reason for that problem. You'll know it for 100% sure if it does, in fact, start when a friend whacks the starter with a hammer.