Chosen Solution
Hello, i recently changed the front speaker of an iPhone XS Max (the one you use on calls near your ear) and Face ID stopped working, i checked multiple times all the sensors that comes with the speaker, restarted the phone and nothing. I didnt touched the screen because it was working flawlessly. My only assumption is that the part has a failure? Probably with another speaker it will work?
Did you replace the whole assembly or solder on a new speaker. The proximity and flood sensor are paired to the phone and if you change that assembly face Id will not work. Also if you change the original from camera face Id will not work.