Face ID uses a set of parts near the earpiece that are paired to the iPhone's board. Damage to any of them stops Face ID.
1. Clean the top of the screen and remove the screen protector.
2. Restart the iPhone.
3. If it says "Face ID is not available", one of the parts (dot projector, infrared camera or flood light) may be damaged, often by a drop or water.
4. During screen replacements, move the earpiece flex and sensors very carefully. They are easily torn.
5. Face ID parts can't simply be swapped from another iPhone, because they are paired to the board.
Apple and some specialist shops can repair Face ID faults. Tell customers about this risk before a screen repair.