If your Apple Pencil isn't working, you may need to charge it or reset its connection to your iPad and pair it again.
You can check your Apple Pencil battery in two different ways, depending on whether you have a first or second generation ...