How to transfer music and photos from iphone to new laptop?

A while ago my computer broke down and I lost all my iTunes library on computer, but it was thankfully still on my phone. I haven't synced to my new computer but have bought some files and have them on my iTunes. Any idea how I could get all my music and photos from iphone 4 onto my iTunes without losing everything? And any way I can regain my songs back from iTunes onto laptop from the iTunes on broken computer?

Try to sync to the PC via iTunes. I'm unsure because I don't use Apple gear.

You can try 4Videosoft iPhone Transfer Platinum to transfer iPhone files like music, videos, photos, etc to computer or iTunes with ease. It's very easy to use. You can have a try. Best of luck!