power on off button not working

This is a very vague question. Could you tell me the following?

Is it a laptop or desktop?

If desktop...
Check to see if the psu is turned on

If laptop
Make sure it’s charged. If it needs charging, charge it