Starts and dies for first three times

it did do a weird thing the other day where I tried to start it and after the second run and stop of it there was literally nothing when i turned the key, like the battery was disconnected
When you say nothing do you mean no crank or no fire.

I'm Ieaning to an electrical issue, ground, connection etc.