Drop an iron nail into blue copper(II) sulfate solution. Within minutes the nail turns copper-coloured and the blue begins to fade. Each iron atom hands two electrons to a copper ion: iron is oxidized to Fe2+, which dissolves, and Cu2+ is reduced to copper metal, which coats the nail. The electrons jump straight across where the two touch, so the released energy only warms the solution a little.
Now keep the partners apart: iron in one beaker, copper ions in another, a wire between them and a salt bridge so ions can move. Iron still gives up electrons, but the only route to the copper ions is the wire, so the transfer becomes a current that can light an LED. That is a galvanic cell. Standard reduction potentials measure how hard each ion pulls on electrons, +0.34 V for copper and −0.44 V for iron, so this cell pushes with 0.34−(−0.44)=0.78 V.
Run the arrow backward and the numbers say no: copper will not give electrons to Fe2+ by itself, because that direction scores −0.78 V. A power supply of more than 0.78 V can force it anyway. That is an electrolytic cell, the second half of the subject: electricity in, chemical change out.
Not every reaction with ions in solution belongs here. Mixing silver nitrate and sodium chloride solutions makes a white solid, AgCl, yet silver stays +1 and chlorine stays −1 the whole time. Nothing is oxidized or reduced, so it is a precipitation reaction. The sign of electrochemistry is a change in oxidation number, not the presence of ions or metal strips.
Think of it like this. Electrons in a redox reaction behave like water at the top of a waterfall. A galvanic cell puts a water wheel in the fall and takes work out; an electrolytic cell is a pump that pushes water back up, and it must push harder than the drop is high. The picture leaves out the ions, which must also flow through the solution to close the loop.
Core idea. Every electrochemical device is a redox reaction whose electrons are sent through a wire: if the reaction runs downhill it produces a current, and if it has to be pushed uphill it consumes one.