How to transfer my music and videos to my iPhone 4S?

I recently received my dads old iPhone and restored it to factory settings. When I synced it to my iTunes library the music and videos were not transfered to my iPhone.

By cable

If your itunes has been set to syc with your iPhone for user name e.g. ABC, then you need to set the user name of the old iPhone to be same as ABC.

An easier way is go to the iPhone syn page and choose recover from backup to this old iPhone.

Using a USB cable connect your iPhone to the PC that has the songs.
Open iTunes and select the iPhone when it appears in the iTunes program.
Select the music tab then select the playlists that you want and select sync.

Once you connect your phone to the computer make sure they are on the same Apple ID.
The Apple ID is shown on iTunes and can be seen on the phone if you go in settings >> store.

Once it is the same there should be no problem in syncing.