Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike G and I'll be assisting you. From your description I suggest checking all wire connections. A loose connection would cause the problem you're having.
It's possible but unlikely. Kicking it to work is a connection problem. If it was a component failure, it wouldn't work with a kick.
The kicking makes me think something is breaking connection that connects when struck. Nothing I could point to specifically.