usually in children,teeth eruption is associated with pain and fever,malaise
in your children's case,there is pus discharge due to bacterial infection.
there is abscess
formation due to food lodgement as a result of poor oral hygiene
visit a dentist
and get adequate treatment.
maintain your teeth and gums clean.
you can use warm salt water gargle too.