On iPhone when making a call, it automatically goes into speakerphone mode.
To change this behaviour, navigate to your iPhone Settings → Accessibility → Touch → Call Audio Routing, and select “Automatic”.
To change this behaviour, navigate to your iPhone Settings → Accessibility → Touch → Call Audio Routing, and select “Automatic”.