When electricity is passed through water hydrogen and Oxygen gas are found change. A change in the state of matter occurs. Is this a chemical or physical change.

This is a physical change. All changes of state are physical changes.

Baloney.

You are right that changes of state are physical changes; however, this is the decomposition of H2O into two different substances and that is a chemical change.
Water changed from a liquid to a vapor is a change of state and a physical change but the water liquid is H2O and the water vapor is H2O. In the problem, the electrolysis of water changes the H2O to H2 and O2 and the fact that you have changed a liquid to two gases is irrelevant.

Yes it's right after electrolysis hydrogen and oxygen become separate and everybody will call it as a physicalchange but it's wrong when it's vaporised hydrogen becomes H2 oxygen becomes O2 it can't be formed as water again so it's a chemical change

To determine whether the change is a chemical or physical change, we need to understand the definition of these terms.

A physical change is a transformation in which the substance retains its chemical composition. The molecules of the substance do not change, but its state or appearance may be altered. Examples of physical changes include changes in state (solid to liquid to gas), changes in shape or size, or changes in phase (sublimation or deposition).

On the other hand, a chemical change involves the formation of new substances with distinct chemical compositions. During a chemical change, there is a rearrangement of atoms or molecules, resulting in the breaking or forming of chemical bonds. Examples of chemical changes include combustion, rusting, fermentation, and the reaction of acids and bases.

In the given case, when electricity is passed through water, it undergoes a process called electrolysis. This process breaks water molecules (H2O) into their constituent elements: hydrogen gas (H2) and oxygen gas (O2). Since the water molecules are split into different substances with new chemical compositions, this is considered a chemical change.

Therefore, when electricity is passed through water resulting in the formation of hydrogen and oxygen gas, it is classified as a chemical change.