First, try signing out of the app store, restarting, and signing back in again. Link > Restart your iPhone - Apple Support
Then failing that… Here’s a troubleshooting sequence > https://www.payetteforward.com/iphone-cannot-connect-to-app-store-real-fix/
Failing that, try backing up and resetting and re-installing iOS, using a Mac or Windows computer.
Failing all that, check with Apple Support using the Get Support link in the upper right.
Once (re)connected… Your iPad is also going to be too old for pretty much any available app, unfortunately.