If I restorre my Iphone 4 will it turn on afterwards?

The screen is black and it still works. It died and the screen popped up the charger thing. I let it charge then it turn on and the screen worked for about 3 minutes then we black again and won't show up once again. Any ideas?

Call 1800myiphone to get a replacement from apple if you had the phone for less than a year