To enable iMessage in Mac's Messages app, go to Messages > Settings. To enable iCloud Messages, go to Settings > Messages. Your Mac will show you the messages on your other devices that utilize the same Apple ID.