My 05 c died on me in a taco bell parking lot after I was drivingwith 0 miles till empty and then turned the car off got food went to start and it cranked but wouldn't catch So I put gas in it from across the street and still wouldn't start all electronic devices are working..... Maybe starter? Alt?
If, as you say "it cranked", then the starter and battery are okay. The alternator has nothing to do with starting except to have kept the battery charged when the engine was running.
You may have introduced air into the fuel system by actually having run it out of gas.
Keep on cranking.
Or worse, you may have sucked up crud from the bottom of the gas tank(s) and clogged up the fuel filter, which will require that the filter be replaced.