When did the behavior start and do you know if something is triggering it (possible trauma, change in her routines, etc)
The behaviors may be caused by anger and may also act as attention seeking or even punishing the adults.
Punishment may not be the best tool to correct her behavior. She may reply on punishment to feel a sense of her self existence.
Routines have to be followed and each guardian/disciplinarian must use the same parenting approach.
You may want to try to implement a behavioral reward system (for the desired/good behavior) allowing her to earn things that she finds pleasant (extra play time, sticker, toy, treat, etc) and use a lot of praise. This may take some time as she gets used to it. Nothing would be an overnight miracle. The rewards have to be given shortly after the positive behavior. If she does well that day, she should be rewarded at that time. She is too young to grasp that "tomorrow" she'd get this or that or go to the park. The motivation would wear off if the gratification is delayed.
Try to notice if the behavior escalates during certain times (is she comes back from visiting one parent, when she may be jealous from her sibling, etc) Stress can increase the acting out behavior.
If you reside in an area where there is a mental health center offering therapy for younger kids, see if there is a play therapist she can work with.