Make sure before you do anything else that you have backed up everything to your Google account on the S3. Check that in Settings, Backup & Reset. Then when setting up your S5, your personal data such as contacts should download into the phone when you sign in to your Google account on it.
Posted via the Android Central App