Face ID proximity sensor has water damage. The bad part will cause this. Replace with a new proximity sensor and the phone will work but the Face ID will not.
open