How to get my music from iPhone to PC?

I recently got my computer refurbished, and had not backed up my PC. So, I lost all my music downloads on my iTunes account, but I have it all on my phone. My music was not purchased through iTunes, so it wouldn't be saved onto my iTunes account, but I did have it transferred to iTunes, but from my PC desktop files. So it was on my iTunes account, it was not saved onto iCloud. My question is how do I get my music from my iPhone to my PC? Keep in mind it won't back up to iCloud.

Get ifunbox. It's a third-party itunes equivalent that runs far better and lets you import data directly.