Hi hayla32,
For help with your iPhone screen not working as expected, you've completed some great steps thus far. You can test with and accessory such as a Lightning or USB-C cable connected. Additionally you can try removing any protective case or screen protectors. If the issue continues, it's likely there's a hardware issue present.
You can also try testing the specific area by using your Calculator app in both landscape and portrait mode.
If needed the articles below have information to help you test.
Use Calculator on iPhone
Rotate the screen on your iPhone or iPod touch - Apple Support
Be sure you have a backup of your data before visiting an Apple Store or Apple Authorized Service Provider. The information here can help: Get your iPhone, iPad, or iPod touch ready for service
Reach out to Apple directly if you need more assistance with your options.
Get Support
iPhone Repair & Service - Apple Support
Cheers.