How do I discipline my puppy?

How do I discipline my puppy?
My puppy, Chloe is 6 months old now and honestly she just will not listen. Recently, she has started becoming aggressive when I try to pick her up. Whenever she does something bad , I put her in cage but then she gets out and does the same thing 😐. My mom spanks her which I don’t like because that’s not right at all and even when she does spank her it doesn’t bother her at all.
Updates
+1 y
Maybe discipline wasn’t the right word , nothing is working. I reward her when she does something good of course. I’m not sure how I should “train” her when she doesn’t listen at all.
How do I discipline my puppy?
Post Opinion