Thanks for visiting Apple Support Communities.
See this article for the ways content can be transferred from your iPhone to your computer:
iTunes: Transferring media from your iPhone, iPad, iPod touch, or iPod
You can transfer media using these methods:
Media type Transfer method Music purchased from the iTunes Store Music imported from a CD or other source