Hello reed246,
We understand you're having some issues with entering the passcode on your iPhone X, as it seems the majority of the digits work, with the exception of 1, 2, and 3. We completely understand needing full functionality of your iPhone, so we're happy to see what we can figure out together.
To begin, do you currently have a case/screen protector on your iPhone? If so, does removing them help with the issue you're experiencing? This article provides those steps and a few others as well:
If the screen isn’t working on your iPhone
If the issues persist after following those steps, reach out to AppleCare Support, using the link here:
Get Support
We're confident that these steps will resolve the issue you're experiencing.
Cheers!