You can turn off your iCloud music library to stop syncing your music across all of your Apple devices.
You can redownload music on your iPhone that you've purchased from iTunes or saved with Apple Music. Here's how to do both.