My contacts an pics was backed up an sync to google i factory reset my android but now i cant retrieve them

For photos...

1. Open the "Google Photos" app.
2. Tap the photo you want to save to your phone.
3. Now tap the "Options" menu.
4. And finally tap "Restore".
5. Repeat for each image.

Or, to get them all at once...

1. Log into the google account associated with the app.
2. Download all the images to an empty folder on your computer.
3. Connect the phone to the computer via USB cord.
4. Copy the images over to the phone or sd card.

For contacts, try this...

1. Go into "Settings" and tap "Google".
2. Locate "Services" and tap "Restore Contacts".
3. Choose the account you wish to get the contacts from (if you have more than one).
4. Tap the device/location you want to restore your contacts from.
5. Now tap "Restore" and wait for the "Contacts Restore" message.