How to Discipline a Stubborn Child?

Islamically, what shall I do with my 5-year-old boy when he is stubborn? I believe spanking is an appropriate form of child discipline.