This covers both for earpiece speakers and integrated hands free loud speaker failures.
For beginners: Ensure that the speaker is perfectly check and test and found working okay before using this guides below.
This first solution is for earpiece speaker sounds output failure, you check and replace thos components highlighted on the picture after ensuring that the speaker is working fine but still no sounds can be heard. This components are composed of filter coil and ESD filter chip.
The second below solution is for integrated hands free speaker failure; If the below components is damaged these may result to no ringtone and mp3 music can be heard when playing.