Today I drove to class and after an hour I got in my car and tried starting it. The car wouldn't start, but it tried to crank over but no luck. The radio and other stuff still worked so I didn't think it was the battery. I took my key out of the ignition and waited for a few seconds then I tried starting it and it started up normally. What could possibly be wrong ???