You may need to replace the magsafe connector Left I/O Board.
+
You may need to replace the magsafe connector Left I/O Board. I have a MacBook Pro with the same issue, It will power up with a charged battery installed but will not charge the battery and will not power up without the battery installed.