Thanks for reaching out aiman268,
It sounds like you recently ended your Apple Music subscription and were unable to find your previous music collection after waiting two months to renew the service. We can help.
When it comes to an Apple Music subscription, it is important to remember that unlike iTunes album or song purchases, you are paying a subscription to stream music to your device but not to actually own any of it.
Apple Music does allow you to save some offline songs for use when data services might not be available, but if the subscription ends, or you sign out of your Apple ID on the device, or if you turn off data for an extended period of time and the subscription cannot be verified - that music is immediately deleted.
Apple Music only keeps track of your songs and playlists while you are paying for the service. Since you let the subscription lapse for two months or longer, it is expected that Apple would no longer retain your playlists.
You can learn more about Apple Music here: Add and download music from Apple Music.
Hope that helps.
Take care.