Can I restore a new iphone with only my photos, contacts and messages from my back up and not the whole phone?
No, the restore from backup process is all or nothing. You can try editing your backup using this, not supported by Apple:
But, if you make a mistake, you'll render your data unrecoverable, so backup your backup first if youy want to give it a try.
Retrieving data ...