If I understand correct, your battery is discharged. So you need to charge it first, or use another phone's battery. Make sure that the battery to be charged at least 80%. If connects-disconnects even if the battery is charged, then clean the phone's connector, maybe it is dirty.