Welcome to Android Central! Try booting into Safe Mode: https://support.t-mobile.com/docs/DOC-36242. If it persists, then that part of the touchscreen digitizer has failed. Bring it to a repair shop, or contact Samsung if the phone is still under warranty. The S Pen uses different technology to detect touches, so that's why it can still work.