Just had the same problem, bought a new iPhone cable, didnt work, replaced the battery everythign worked like magic!
open