First off, know your child so you don’t use the same punishment indiscriminately for everybody, b/c it doesn’t work.
Secondly, decontextualized physical punishment doesn’t work because the child doesn’t make the connection between why physical pain is happening and what they did wrong.
That’s why JUST hitting doesn’t work. Also it builds up tolerance in children until you have to go farther and farther before you get results.
That’s why you need to use physical punishment sparingly. Most discipline should be mental due to the respect they should already have for your authority. And reinforcing your authority happens with everything you do, not just when they do something bad.
Lastly, once again, know your child. Some kids actually prefer beatings to lectures. For me, I could take a whipping. But putting me in an isolated room. No books, video games, just staring at a wall with nothing to do was straight up torture.
Also the lectures. From mother and father and granny and uncles, and church members, and neighbors, that old chick at the cleaners.
THAT shyt is what did me in. Hoards of people digging into the psychology behind your fukk ups. Again and again and again, until you can’t hide from them. The mental dissection where you are splayed out on the table and they are surgically cutting apart every excuse you put forth for your behavior. THAT is the most effective shyt EVER. Because even when you beat somebody, they can still rebel in their private thoughts. But when you force somebody to break down and admit the REAL reasoning behind their dumb ass actions, it’s 
It’s like a type of forced accountability. There was nowhere you could hide in my family. It also makes you very introspective and gives you great insight into other’s behavior too. When you’re forced to know yourself and all the dumb ass excuses you make up for why you do the dumb shyt you do, it really sheds light on others as well.

But that process is gut-wrenching. It’s like condensing years of therapy into a single session and force feeding your child with it. I actually would have preferred the belt if that’s all that came with it.

That shyt made us always think twice, thrice, many times before we did dumb shyt. That’s also why peer pressure didn’t work on us.
Aint shyt some snotty nosed little kid could do or say to you when your family is touched in the head.