dear ryde, hello
when your hand banged on the electric box with a strong impact, it can result in injury
. It can result in some confusion, irritation , tramsient memory loss
, headache ,etc.
This condition usually resolves by itself by giving proper rest to body- both physical and cognitive.
but if your problem persists, contact medical advice