Most "broken" Apple devices are one setting away from working: a full disk, a signed-out account, a restriction or an app that needs restarting. Work through the checklist for your symptom before assuming the hardware has failed.
Before anything else: restart the device, check you are on Wi-Fi, and confirm your Apple Account is signed in. Those three explain most faults.
iPhone & iPad
Can't download or install apps
The Get button spins, the download waits forever, or the App Store says the app cannot be installed.
Check the Apple Account is signed in: Settings > [your name]. If it asks you to sign in, that is the cause.
Check storage: Settings > General > iPhone Storage. An app needs free space to install, so delete a large video or offload an unused app.
Check Screen Time: Settings > Screen Time > Content & Privacy Restrictions > iTunes & App Store Purchases > Installing Apps must be Allowed.
Check the payment method: Settings > [your name] > Payment & Shipping. An expired card stops even free downloads.
Set the date automatically: Settings > General > Date & Time > Set Automatically.
Switch from mobile data to Wi-Fi, then restart the phone with the side button and volume up.
If only one app fails, check it supports your iOS version on its App Store page.
Still stuck? Sign out of the App Store (tap your photo in the App Store, scroll down, Sign Out) and sign back in, then check Apple's System Status page.
iPhone & iPad
An app won't open or keeps closing
The app bounces back to the Home Screen, freezes on a blank screen or closes mid-task.
Close the app properly: swipe up and hold, then flick the app card away.
Restart the device; this clears most stuck-app problems.
Update the app in the App Store, then update iOS in Settings > General > Software Update.
Free up storage if the device is nearly full.
Delete and reinstall the app only if you have signed in to it, since deleting removes local data.
If a single app keeps failing after a reinstall, the problem is usually the app rather than the device; check its App Store reviews for the same fault.
iPhone & iPad
Storage full and nothing will save
Photos will not save, messages fail, or Settings warns that storage is almost full.
Settings > General > iPhone Storage shows what is using the space, largest first.