2006 Pontiac G6 intermittently won’t start

Have a 2006 Pontiac G6 sometimes it’ll start sometimes it won’t took it to Pontiac spent $2,000 still doing the same thing new starter alternator battery wiring everything is there something with those cars that were missing

Take it back to the shop that did the work.
BTW, did you mean it was a GM dealership that previously sold Pontiacs?

No the car was just bought off an individual taken to a dealership here they worked on it forever got it home my daughter drove it for about 2 weeks and it started doing the same thing I had a heart attack so hadn’t been able to do anything with the car they’re good to just a regular mechanic he doesn’t have a clue just don’t want to spend a bunch more money on it everything’s been changed didn’t know if that was common with the G6 Pontiac

Sorry . Tim . But why do you think all vehicles have the same problems ? You bought a 13 year old vehicle and why you took it to a dealer I don’t understand since Pontiac is gone .
What has whoever worked on this thing said as to why they have not solved the problem ?