hear speker not work

hello dev I have a problem on my nubia z17, when I m called someone by messenger or imo or viber other side recved my call then I saw my hear speker is not work and same time loud speker is auto conect, so plz fix this problem.I m now the version