Hello mariama197,
Welcome to Apple Support Communities. We understand that after your Apple Music subscription expired that your music playlists are deleted. We are happy to help.
We have no way to provide you with your playlists. Apple does not have access to the content on your iPhone.
If the music that you no longer have was previously purchased from the iTunes Store, you can redownload it using the steps here: Redownload music - Apple Support
"Redownload music in the iTunes Store app on your iPhone, iPad, or iPod touch
- Open the iTunes Store app.
- On your iPhone or iPod touch: At the bottom of your screen, tap More
, then tap Purchased. - On your iPad: Tap Purchased.
- Tap Music. If you use Family Sharing, tap a family member’s name to see music that they purchased.
- Find the music that you want to redownload, then tap it.
- Tap the download button
next to a song or album.
Don't see the music that you purchased?
Music app on your Mac
Before you can redownload music that you purchased from the iTunes Store, you need to authorize your Mac using your Apple ID.
- Open the Apple Music app.
- From the menu bar at the top of your screen, choose Account > Purchased. If you use Family Sharing, you'll see Family Purchases instead of Purchased.
- Find the music that you want to redownload. If you use Family Sharing, choose a family member next to Purchased to see their purchases.
- Click the download button
next to a song or album.
Don't see the music that you purchased?
Redownload music in iTunes on your PC
Before you can redownload music that you purchased from the iTunes Store, you need to authorize your PC using your Apple ID.
- Open iTunes.
- From the menu bar at the top of the iTunes window, choose Account > Purchased. If you use Family Sharing, you'll see Family Purchases instead of Purchased.
- Choose Music from the menu in the upper-left corner of the iTunes window.
- Find the music that you want to redownload. If you use Family Sharing, choose a family member next to Purchased to see their purchases.
- Click the download button
next to a song or album.
Don't see the music that you purchased?"
If the music came from CDs that you imported to your computer, we recommend syncing your iPhone with your computer using the steps here: Sync your iPhone, iPad, or iPod using your computer - Apple Support
"Before syncing your content, consider using iCloud, Apple Music, or similar services to keep content from your Mac or PC in the cloud. This way, you can access your music, photos, and more on your iOS or iPadOS devices when you aren't near your computer.
Depending on the macOS version your Mac has, you might need to use Finder or iTunes to sync your iPhone, iPad, or iPod touch using your computer. If you have a PC, you will need to use iTunes to sync with your iPhone, iPad, or iPod touch."
If you backed up your iTunes library, you will be able to restore it using the steps here: Back up and restore your iTunes library on your PC - Apple Support
"If you have a Mac
In macOS Catalina or later, your previous iTunes media library is now available in the Apple Music app, Apple TV app, Apple Podcasts app, and Apple Books app. And when you back up your Mac, your media library is automatically included in that backup. When you set up a new Mac, you can also restore your Mac from a backup.
Restore your library from a backup
You can restore your iTunes library from your external drive to your computer. If you're restoring an iTunes Library from a different computer, make sure that your new computer has the latest version of iTunes.
- Quit iTunes.
- Go to "This PC," then click your external drive.
- Select your iTunes folder, then right-click and choose Copy.
- Go to the location on your computer where you want your iTunes library, then right-click and choose Paste.
- Hold down the Shift key while opening iTunes.
- When you see a message that asks you to Choose iTunes Library, click Choose Library.
- Choose the location where you copied your iTunes folder.
- Choose the iTunes Library.itl file inside.
- Click Open."
These steps may help. Please let us know if you have further questions.
Take care.