There are also other peripherals that can interfere with your Mac trackpad and cause input issues. To eliminate the possibility that other devices are causing the problem, disconnect them from your computer. USB-connected devices and Bluetooth accessories fall under this category.
You will need to connect an external mouse to your machine once you have confirmed that peripherals are not the problem. In order to try other fixes, you’ll need it to interact with macOS.
Read the full blog here: https://www.soldrit.com/blog/is-your-macbook-trackpad-not-working-here-are-the-fixes/