A. Ensure that you are logged into the same Apple ID on all devices. Go to Settings > [Your Name] and check the Apple ID. Also, make sure that 'Messages in iCloud' is enabled by going to Settings > [Your Name] > iCloud > Messages and toggling it on.
B. Check your internet connection on all devices. If one device is not connected to Wi-Fi or cellular data, it may not sync messages.