If Apple Pencil is acting unresponsive, it is most likely out of battery. Try plugging the pencil into your iPad (Pencil 1) or placing it on the side of your iPad (Pencil 2) and letting it charge for about ten minutes. Then try using it again. You may need to re-establish connection with your iPad.