If you have wudu' and any of the matters which invalidate wudu’ takes place, you must not pray until you make a new wudu'. Among the invalidators of wudu'are:
1. The emission of any substance from the eliminatory outlets, such as urine, defecation, or gas, except maniyy.
2. Touching the penis or vagina, or the anus with the inside of the bare hand (the palm).
3. Losing the mind or losing consciousness
4. Sleeping without having the buttocks firmly seated, such as sleeping on the stomach, back, and on the side.
5. Skin to skin contact with a member of the opposite sex, who has reached an age where he or she is normally desired. (the females whom one is not allowed to marry in any circumstance such as his mother, sister etc. (are not included).
6. If one of these matters happens to you during prayer, you stop the actions of the prayer, perform wudu' and then start the prayer from the beginning.