What does is loving, present, interested parents, combined with consistent, logical rules, with consistent consequences.
Spanking will work in the short term, at the cost of significant damage to their adult psyche. It's insidious, hard to fix later. When the foundations of trust are shattered, everything else following is built of a bed of sand.