Chosen Solution
I just finished front screen replacement. It was cracked and ear speaker was intermittent. New screen came with speaker but it still does not work. ear buds work. battery was dead and is charging now. at 21% phone seem to work fine as far as emails,texts. have not tried phone or hard reset, waiting until full charge. So far real happy with new screen. Is there a switch that is bad or something that can be replaced that will allow speaker to work?
Have you tried reconnecting the connectors from the screen to the logic board? If you have, I’d make sure that the pins on the motherboard side of the connector are all intact and if the pins on the speaker are making contact with the front camera/speaker/sensor assembly.