In the 3-dot overflow menu, there is an option called "View contact". Selecting this option will open the contact details for this contact in your Contacts app.
If you just want to see the phone number for the contact, there is a navigation drawer/side menu available within any conversation. Swiping from the left edge of the screen will open this menu, which shows basic contact information.