Michael Faraday invented the first electrical generator on 1831. He was a British chemist and physicist who did an extensive work in the field of electricity. Earlier on that same year he discovered electromagnetic induction also.
His works on the area paved the way for the inventnon of the electric motor and the transformer.
I hope that this answer help you.