Which one was invent firstly electricity or bulb?

electricity came first because Thomas's bulb used electricity so electricity came first.