@alexbelle14 this could be coincidental findings of a failed battery. It may have gotten discharged beyond it's threshold and just no longer holds a charge. Start with a new battery. This will also give you a known-good starting point should further troubleshooting become necessary.
Anything deeper than that will require you to disassemble your phone and check the charging port as well as the power circuit