Hello FranklinGirl2020,
Thanks for using the Apple Support Communities. It sounds as though you're running into an issue with the charging and headphone port on your iPhone. There are 2 articles that may provide the information needed to correct this. Check out the following articles:
If your headphones don't work with your iPhone, iPad, or iPod touch
If your iPhone or iPod touch won't charge
If you continue to experience issues after those actions, you might consider reaching out to Apple Support at Get Support. You also have the option of having your iPhone checked out by a technician so they can see if there's something going on with the port. You'll find your available options here: iPhone Repair and Service.
Best wishes.