i once had that problem with an electric iron. When I opened it up, I found a screw had come loose and was stuck between two electric terminals. If you can open the cooker and look, you might find an easy fix.
For future reference, it usually helps to name the make and model of the device.