Toddlers

What is the best way to Discipline a 3 year old when he/she isn't behaving? Like When they don't listen to anything that you say.?