If you're unable to access your device's settings menu, you can use the hardware keys to perform a hard reset:

To perform a hard reset on a Kyocera BASIO 4 , you can use the hardware buttons to enter Recovery Mode, which is the most effective method if you are locked out of the device. Method 1: Hard Reset via Hardware Buttons (Recovery Mode)