My iphone 3gs won't turn on and it won't restore

My iphone 3gs won't turn on it is stuck on the apple logo for about 2mins then it says i need to charge it but when i do it has that little flash thing saying its charging for a while, then after a while it goes on the apple logo again. I have put it in dfu mode and tried restoring it but it won't work i have tried charging it but that doesn't work.best answer will get points.

All you need to know here…

http://lifehacker.com/...ipod-touch

but
Typically if things go wrong you end up stuck in DFU until you flash the right firmware, and the device appears to be dead because it won't even power up to the Apple logo. However, if things go really wrong you could end up with a permanently bricked device.

I'm not sure if this technique will work for your iPhone, but I guess it's worth a shot? When my iPod had crashed and was stuck to a white screen, I found a video online where it told me to hold the home button and the lock button simultaneously for ten seconds. It then re-started as normal. Hope it helps.

Plug it into the computer and if that doesn't work, hold down the lock button and home button until something happens. If none of this works, i would call apple tech support or bring your phone to an apple store