To export contacts from Microsoft Outlook, you'll need to use Outlook's "Export to a file" feature, which is built-in.
You can back up messages on an iPhone to your iCloud account, or sync messages from your iPhone to your Mac.