2006 pontiac grand prix 3.8

the car shuts down while driving it and after sitting 5 minutes it will crank back up.,