Pushing the cork into the bottle is the best way to open a bottle of wine without a corkscrew. You can also use a lighter, a shoe, or even a bike pump.
If your Apple Pencil isn't working, you may need to charge it or reset its connection to your iPad and pair it again.