You can Trade-up for a new iPhone or let Apple solve it.
Apple store can tell you what's wrong
I assume you've tried multiple chargers and outlets? If so, I'd say your charging port is dead and you should either replace or repair the phone.
Thanks! Your answer is awaiting moderation.