Original: When free electrons—both in vacuum and metals—move, they produce a net flow of charge called an electric current, which generates a magnetic field.
Simplified: Electrons have the smallest electrical charge and when they move, they generate an electric current. When electrons move from one atom to another, and there is a net flow, this flow is called electricity, or an electric current.