I had this same problem occur just before I updated to Monterey which persisted after the Monterey update. Changing system preferences didn't work for me however after turning off my computer (Macbook Air 13" 2020) and leaving it off for about half an hour the trackpad was working when I switched the laptop back on.