Click Password & Security in the sidebar, then make sure that Manage iCloud storage on MacApple Support article: Use Messages in iCloud