This reaction is a special decomposition reaction called electrolysis.
The reaction looks like
H2O —> H2 + O2
These gaseous products exist in H2 and O2 form because they’re diatomic, which means they don’t exist in nature without being bonded to each-other.
We must then balance the reaction to get our final answer
2H2O + 2H2 + O2