Stealing Electrons
According to Solar System Model (or Bohr Model) of the atom, electrons are in orbits or shells around the nucleus. A maximum number of electrons are allowed in each orbit. Forces in each atom seek to reach that maximum number, such that if an element is just carry a "positive" charge, while electrons carry a "negative" energy charge.
Usually, the two different charges balance each other out, and nothing happens. But when two objects with like charges (all positive or all negative) come together, the charges repel and the objects move away from each other. Objects with opposite charges attract each other because the different charges want to enter a state of balance with each other.
Objects can get a negative charge by picking up electrons from other objects. For example, when your shoes scuff against the rug, your shoes are actually picking up electrons from the rug. The electrons fly over your body, giving you a negative charge.
Your new electrons fly over your body because they are looking for a positive charge. If you touch a metal doorknob, the electrons on your body will leap into the metal, attracted by the protons there. The transfer of electrons is actually a small electrical current, and produces the tiny electric shock you feel called Static electricity.
Lightning is similar, except on a much bigger scale. Both lightning and an electric charge happens because of the attraction between the opposite static electricity charges.