Connect your old iPhone to your computer and use iTunes to transfer your music to your computer. Then connect your new iPhone to the computer and sync the music from iTunes to your new iPhone.