Lg405 mic works when is on speaker only pls help

Lg d405 mic works when is on speaker only pls help me with the solution