Welcome to Android Central! You didn't have your photos backing up automatically to Google Photos on the old phone? And did you save your contacts to your Google account (rather than the local Phone account)? If so, then it's a simple matter of syncing all of that with the new phone, which happens automatically once you sign in with the same Google account.
If you didn't do the above with the old phone, and you didn't have that information backing up anywhere else (like in your Samsung account, as mentioned above by mustang 7757), then you're out of luck. This kind of thing can be easily avoided with an ounce of prevention.