Domestic safes with electronic keypads will use batteries. These will not last forever. If they go flat or leak the safe will not open. In that case you will either have to use the backup key or battery backup facility, depending on your own particular safe. High end safes may generate the power supply from the knob itself.
If you’ve lost your back up keys, you may need a locksmith to open the safe for you. To avoid needing a locksmith check you know where the keys are, and change batteries when the keypad tells you to change them.
We were called to open an electronic safe with these batteries fitted. The override keys had been lost so the customer needed our help. Can you see anything wrong with the batteries?