Welcome to Android Central! That depends on if you had saved or backed up your pictures and phone numbers to the cloud in the first place. If you entered your contacts into the local Phone account, and not your Google account, then the contacts weren't synced to the cloud, and they're gone. If you didn't actively backup your photos anywhere (like with Google Photos auto backup), and they were only on the phone, then they're gone as well.