A source of mechanical energy is inside a generator. The mechanical energy moves the wire into the magnetic field so it can cut through the magnetic lines of force. Electric current is produced.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.