Lost all my contacts on iMac when I upgraded software
It sounds like your iCloud is not configured on your Mac. Go into system prefs and make sure you are signed in to your iCloud account, and make sure it's the same iCloud account that your phone is signed in to.