push your home button three times quickly.
connect the iPhone to it's cord, and plug it in.
Press and hold your Sleep/Wake button (on the top right) and Home button (on the front) together for around 20 seconds.
When the Apple logo appears, release both buttons.
The next thing you should see after the Apple logo is the home screen a few minutes later.
If the above does not work, let me know.