As Matt Zieminski says, if you have backed up your iPhone before, you can try restore. But this might replace all existing data and the process is to some extent complicated for new users and time-consuming. If there is no backup, the only way to retrieve deleted messages is using an iPhone message recovery tools, and you should avoid using your iPhone to prevent the deleted data been overwritten so no tools can recover them. Try PhoneResuce, Dr.fone, Primo iPhone Data Recovery, great tools to retrieve iPhone messages. Here is a guide: https://www.primosync.com/support/how-to-recover-deleted-messages-from-iphone-7-plus-backup.htm
Those photos are synced from computer maybe with iTunes or some third-party apps, you can't delete them directly on iPhone. iTunes helps : Step 1. Open iTunes and connect with your iDevice. Click the Device button. Step 2. Under photos > choose Sync Photos > Choose "Copy photo from Photos" > Below check "Selected Albums" but DO NOT select any albums > Make sure there is 0 photos you choose > Apply.
1. Try the other original charging cable for your iPhone iPad. 2. Clean your Apple Accessory. You can use a pushpin to carefully insert it into your iPhone or iPad charging port, and clean out the pocket lint or debris from the charging port. 3. Plug your charger in, when you get the error message hold your finger on the dismiss button and pull your charger out. While still applying pressure to the screen, plug your charger back in and it should work. 4. Turn off the device with the Lightning plug attached and then restart it. 5. Connect your iPhone to the charging cable. The error message will appear, so dismiss or ignore it. Next, turn on the Airplane mode in your device. Turn off your iPhone and wait for 1 minute and turn it on again.