Chosen Solution
I changed my front facing camera after damaging the cable whilst changing the battery. I can only take phone calls now on loudspeaker. I’ve changed the speaker but still the same
Check the ffc connector for damage and reseat. Where did you get your parts from?
Off eBay. It seems that it’s seated ok would that cause the problem with the speaker not working but only the loudspeaker
Oh Man! You messed up with your front earpiece flex cable. The flex cable should connect to the board which is responsible to get power to earpiece.