Twice when Istopped for gas on 2001 Saturn SL1

When I stopped for gas car would not restart...nothing...not battery After one hr car started right up Whats wrong

Asked by for the 2001 Saturn SL1
If you have power, like you can see your dash lights and work your acc. your problem may be a bad starter, also starter relay, neutral switch or ignition switch. Do you have other symptoms?