First take a cardboard and make two equal circles on it, proportionate to the nail. Cut the two circles appropriately and make holes exactly in center of each of them. Take the iron nail and push one circle right up to the head. It is to note that the nail should be rust free, has a large head and is long enough to accommodate enough windings.
Then take an insulation tape and wind it near the sharper edge up to 2-3 centimeters. Now take the second circle and push it right till the insulated part on the nail end. Use the same insulation tape on each side of the circles to fix them. Once done, it will resemble a spool wherein the windings are now to be wounded.
Now take a copper wire and start winding it between the two circles. Before doing this, make sure that at least 10 centimeter of wire is left free at the start end. Keep making windings, layers wise, one above the other, till the cardboard circles can hold the windings between them. Once done, leave at least 10 centimeter of the wire free at the other end also.
Then, take free ends of the wire, remove their insulation and wire them to a small torch bulb. Now bring a magnet close to the head of the nail and start moving it in a brisk and rapid motion around the head. The magnet when moved around the coil shouldn’t be more than five millimeter away from the coil. After some time the bulb will glow, indicating electricity generation.
This is the most basic form of generator that can be made to explain the creation of electricity. However, more complex mechanism can also be made by making the magnet move automatically around the nail or by making a simple hand cranked generator as shown in the figure.

click to enlarge