To re-enable Messages in iCloud, just check the Enable Messages in iCloud box in macOS. In iOS and iPadOS, go to Settings > ...