How do I change settings so I can get name of messenger instead of phone number?

contacts are showing up in messages as numbers not names
1. Try rebooting your device.
2. Make sure the names of the contacts whom you're receiving messages from are in your Contacts list.
3. If the contacts are associated with iCloud or another email service, go to Settings - iCloud or Settings - Mail, Contacts, Calendars and then toggle the button next to Contacts to disable it. Afterwards, toggle it again to re-enable syncing of those contacts back to your device.

Original thread: https://forums.imore.com/threads/how-do-i-change-settings-so-i-can-get-name-of-messenger-instead-of-phone-number.304396/