perhaps.. (1) describe the boiling process, (2) describe the electrolysis process, (3) compare them.. I am sure u know (1) & (2) pretty well..
Both cases involve water at liquid state initially, so the molecules are at random continuous motion with significant intermolecular bonding.
Application of heat increases the average KE of the water molecules to the point that it balances out with the intermolecular attraction. Furthur heating would therefore overcome the forces of attraction and water boils off.
2H2O <=> H3O+ + OH-
Water exihibits autoprotolysis as abovementioned. The electrodes would attract ions that is oppositely charged to it, and thus discharges these ions to form H2 and O2. This shifts the equilibrium due to right, and the electrolysis process continue to discharge the ions as below:
Cathode reaction:
2H3O+ + 2e => H2 + 2H2O
Anode reaction:
4OH- => O2 + 2H2O + 4e
Overall reaction:
2H2O =>2H2 + O2