It could be just the system software needing restoring or the battery being replaced. At worst it could be liquid damage inside the phone. You never know until you open it up and look for signs of liquid residue in the phone (white spots, burn marks or moisture)