If your phone's battery does not have enough power, your location cannot be transmitted. In order for location services to work, the phone needs to be powered on and have enough battery for data transmission to Apple's servers. If the battery dies, your location is turned off until the phone is powered back on.