All song delete when I buy new iPhone. need help!!

I had an iPhone 6 and today I bought an iPhone 8 Plus. Before I opened the new device I backed up all the phone on the iCloud but when I switched to the new device all the files moved except the songs at Apple Music.
Does anyone have a solution or how can I get back all the songs ?? There were a lot of songs there and I really do not want to start returning everyone (considering that I also do not really remember all the songs that were there).
Sign in to Music and then enable iCloud Music Library. Your songs should begin syncing to your new iPhone 8 Plus.
Sign in to Music and then enable iCloud Music Library. Your songs should begin syncing to your new iPhone 8 Plus.

Yep!
It’s usually off after setting up a new device. It should sync right away after you toggle it back on.
I hope you were able to figure it out! Let us know. Also, welcome to iMore! When you get a chance, please take a minute to introduce yourself in the thread for new member introductions!
Sign in to Music and then enable iCloud Music Library. Your songs should begin syncing to your new iPhone 8 Plus.

That's what I've had to do in the past.

Original thread: https://forums.imore.com/threads/all-song-delete-when-i-buy-new-iphone-need-help.399606/