Welcome to Android Central! If the phone won't power on, then you'd have to remove the motherboard and install it into another phone (which is clearly something for an expert to do).
This is the reason why contacts should always be associated with your Google account (so that they sync automatically with your Google Contacts in the cloud), and photos should be backed up on a regular basis (or Google Photos Auto Backup should be turned on).