Sounds like an issue with the charging port. If you have tried multiple cords and the only one that works is the one in the car, that's probably just a coincidence.
Setup an appointment with the Apple Genius Bar and have them take a look for you. They can test and see if it is the charging port. Setup an appointment here. -> Genius Bar Reservation and Apple Support Options - Apple