Hello akashram,
Thank you for reaching out to Apple Support Communities, and we'll be happy to help in any way we can. We understand you're having issues with music not syncing with your Mac. Follow the steps listed here to see if they resolve the issue: If songs are missing from your music library after you turn on Sync Library - Apple Support
"Check these things first
Check your settings and network connection on all of your devices:
Apple Music isn't a backup service. Make sure to back up your music library before you make any changes.

If you can't find or play a song
If you can't find or play a song, check if you added it from Apple Music. If it came from another source, the song might be waiting to upload. Try these steps:
- Turn on your Mac or PC and connect it to the Internet.
- Open the Music app or iTunes for Windows.
- Keep the Music app or iTunes for Windows open so your library can finish uploading.
If you see an ineligible icon
next to a song, delete the song, then add it back to your library. If you still see an ineligible icon next to a song, then that song can’t be uploaded.
If a song is grayed out, then the song might be waiting to upload, no longer available, or not yet released from the Apple Music catalog.

If a song is missing
Make sure that all of your devices have Sync Library turned on, and signed in with the same Apple ID.
If you’re still missing a song that you added from the Apple Music catalog, then the song might have been removed from Apple Music or is available under a different file name. Try searching Apple Music for the song, then add it to your library.

Turn Sync Library off, then turn it back on
You might be able to fix your issue by turning Sync Library off for all of your devices, then turning it back on again. Learn how.

Still need help?
If you still need help with Sync Library, contact Apple Support."
We hope this helps.
Cheers!