Malibu starting problems

I have a 2006 Malibu that suddenly wouldn’t start. Since it has been at the dealer’s service garage for the past week and a half, it has not repeated the problem. I had a 1997 Olds with the same (at least it seemed the same to me) problem. I had the starter, alternator, and battery replaced on that vehicle before giving up on it and trading it off several years ago. This is exactly how the problems started with that car. Any ideas as to what’s wrong?

First you need to say what “wouldn’t start” means. Do you mean that you turn the key and nothing happens (other than maybe a click-click), or do you mean that you turn the key, the car cranks, but won’t fire up?