Almost 3 yr old doesn't listen.

Please leave kind words and constructive criticism. We are young parents and are getting frustrated with our son.....hes such a sweet boy. But hes such a tester with everything and time outs and spanking aren't working