you need to provide us with more information,when is it happening ect.my iphonw 3gs keeps dying and i dont know what to do.
have you tried a hard reset?well even on full battery and a decent amount of battery it will just turn off and you can see the screen just fade out like the battery is dead. i have restored it twice and it has the latest software.