How to restore iPhone 5 trick holding home button and lock button!

I saw a clip on YouTube of a kid doing it and it works but I forget how to do it. It's like you hold the home button for 5 secs and then the lock button for something? Help!

There two possibilities. Either he put it in recovery mode where you hold the home button then connect the device to the pc the iPhone should have a connect to iTunes logo. Or dfu mode where you hold the power button for 3 sec hold the home button for 10 secs then let go of the power button and continue holding the home button until you see a black screen. Good luck