is your iphone jailbroken? if yes then it might be a "teethered-jailbreak" and you need to boot it after connecting with your PC everytime the battery dies