Turn it off. Pat several times at its back and then switch it on again. This is the easiest way to get your stuffs in working order again.
If your phone stops working, just drop it from a meter distance. I have tried it several times with the phone of my friends and it works.
And mind it, this is not a foolish post in my blog. Its' come from my own experiences.