If your internet connection is working and Apple Music is still showing the Cannot Connect error, the next step is to check for any available software updates for your device. If an update is available, download it, wait for it to install, and see if things are working again. If issues still persist (and you use Apple Music on an Apple device), Apple recommends checking your date and time settings.
If the date and time are incorrect, you may need to manually update them or enable automatic time settings. On the iPhone and iPad, you can find these settings when you open the Settings app, tap ‘General,’ and tap ‘Date & Time.’ On Macs, you need to open System Settings and then click ‘Date & Time.’
Should you follow these steps and keep seeing Cannot Connect on Apple Music, the final solution is to contact Apple Support and see if someone on the support team can lend a hand. Most folks shouldn’t need to do this, but if you’ve tried everything and nothing seems to work, someone at Apple should be able to get to the bottom of it.
Fix Family Sharing Not Working With Apple Music