Question: how do i link my iphone messages to my mac?
Answer: Open Settings. app.
Go to "Messages" and make sure iMessage is On.
If iMessage is on, "Send & Receive" will appear below it. ... 
Make note of the Apple ID at the top of the page.
Select your phone number and email address(es) that you want to sync to that device.