Scan the car's computer; it should tell you what is wrong. These days an app on your iphone or android and a plug-in scanner with wifi, will show you how your car is feeling. Or you can have the mech do it... Sounds like your starter is working, your battery is working, then take it from there. Ignition, fuel filter, fuel pump, at least it starts right? ;-)
Probably a nice auto parts store person will scan your car for free if you want to try that. If your car eventually starts, it shows you the ignition is working mostly.. So then I'm thinking fuel pump and fuel filter are most obvious problems to check. It can also be silly things, like computer is running a check on other problems, delays starting the car. Stupid stuff like that.