Music on playlists gone after logging out then into Apple ID
I logged out of my Apple ID, to check something, when I logged back into my Apple ID and went to my Music app, all of my music I had saved and downloaded on Apple Music was gone. I fixed this by going to settings and turning on my iCloud Music Library and all the music was back, but when I checked my playlists, the music (from Apple Music) that I had put on the playlist were gone and the only music I had earlier purchased through iTunes was on the playlist. I don't remember what music was on each and would appreciate any help on returning the music on my playlists
iPhone 6, iOS 9.2.1