My iPhone 5 won't output sound from the speaker for most apps like the Music apps, Pandora, YouTube to name a few. I've fixed this with factory settings, however, all my iPhone music are lost. Is there a way to recover lost iPhone music?
This will wipe your phone and install a fresh new copy of the system. When the problem is resolved, you can then restore your apps, files and settings from your backup and you should be good to go.
It would be great if you have an iPod or iPad which also has the music in your iPhone, as you can use iAny Transfer to transfer music from iPad or iPod to your computer and then import music from computer to your iPhone via iTunes syncing.
iPhone music recovery can be different if the music you are to recover is purchased ones. You can redownload them from App Store on iTunes.
The music files on your iPhone might take up a large space, if you need to get rid of some and clean up iTunes library, check how to clean up iTunes library.