Keyboard,Mouse,CPU hangs up

I have windows xp o/s in my CPU and internet connecting through mobile.Some times suddenly keyboard,Mouse and CPU hangs up and giving shock when I touching to mobile(power is coming to mobile).And then need to restart.I dont know why it is happening.

This sounds like a hardware problem, maybe something is wrong with the power supply of your computer or the wiring. Is your computer connected to a properly grounded wall socket? Let a repair shop check it out.