Depends on the part, Did you get an ‘OEM’ grade battery for the replacement or the cheaper battery? Knock off batteries can have a smaller capacity and might not perform like an OEM. Defiantly check the specs on the battery with an app on the phone. There are actual tools (Battery tester) that will give the information on the battery before install however they can be expensive. The battery you have may also be faulty.
Might be a dead screen or the connection isn’t secure on the logic board. Check the connections for the display as it may not be fully connected, if it is then the part may have failed. [http://iPhone X Screen Replacement|아이폰 X 스크린의 교체하기]