When you pass current through water, hydrogen and oxygen will be produced. Pure water is a bad conductor of electricity as it is a covalent compound. To make water conducts electricity, there must be the presence of impurities or ions(e.g. sodium ions).
This videos explains how to do electrolysis of water. (Includes some basic chemistry)