How do I transfer my purchased music from my iphone that has been turned off to my ipad or computer

So my iphone is all cracked and broke but I have music stored in the music library that I want, How would I get it off my iphone to transfer it to another device?
if its purchased you can just re-download from iTunes.
id love to get an answer to my question its being bugging me since apple music first launched god i want an answer so bad just to tell me whats going on and are other people experiencing the same thing its driving me nuts even if noting can be done just want to know why this is happening and are others experiencing it thanks

Original thread: https://forums.imore.com/threads/how-do-i-transfer-my-purchased-music-from-my-iphone-that-has-been-turned-off-to-my-ipad-or-computer.369459/