Have you tried to replace the battery? Do the iphone stay on when its not plugged in the charger?
open