On your Mac, go to Messages Settings and click iMessage. There, you will find an option to click Sync Now. If that doesn't work, try de-selecting and then reselecting Enable Messages in iCloud. As a last option, sign out and back into your Apple ID.