How to transfer music from iphone to PC?

I just got a new laptop but i don't have any of my old music backed up since my old computer completely died. All my music is only on my iphone. My itunes purchases synced over but for the other music i can't transfer it on to my computer. Does anyone know of good (Free) software that will let me do this.

I'm not familiar with Apple products and how iTunes works, but have you tried attaching a USB cable between your phone and PC to transfer the files that way? Or is it all on a cloud?