I have never had children so I cannot comment on what has worked for me. However, I can comment on what did well on me as a child.
Consistency is important, boundries and rules. Animals do it and it works well, spanking is fine as long as it doesn't become abusive because there is a difference...