How to reset an IPHONE that has a password on it?

I remember doing it once and it involved hold ing the power button and I think the home button or the volume and I can't remember.

Look up DFU mode and restore your phone in iTunes.

Even if you did you still would have to enter the password before being able to use it.