Not everything is caused by electrical fault.
Get in, close door.
Turn key to "ON", wait till the fuel pump stops running (you can hear it, maybe 5-6 seconds).
IMMEDIATELY, turn key to "start" - does engine start up fine? If so, you have low fuel pressure / fuel pressure that builds up too slowly.
Buy higher pressure fuel!