How do you discipline your two year old?

Amber

I’m interested in how some of you discipline your two year olds. My daughter does not listen, I’ve tried spankings, time out and yelling until I’m blue in the face. Overall she’s a good kid but I’m at a loss for how to make her listen