Preschoolers are working out that other people have feelings too. When they remember, they'll want to be considerate of those feelings. Preschool can help children of this age learn about getting along with others.
Listen actively, praise your child, catch your child being good, give simple instructions, and give children more responsibility for behaviour as they get older. This article explains these and other tips for encouraging good behaviour in your child.