Children who refuse to go to school often are diagnosed with anxiety disorders like the so called fear of seperation, depression or the combination of both disorders. This may require educational counseling, cognitive orientated psychotherapy and/or medication.
Medication is not applied at the beginning of the therapy. Only when psychotherapy turns out to not be sufficient, or the children don't go to school during a long period, medicational treatment with antidepressants should be considered.
For children with severe generalised fears or fear of seperation respectively depression, so called SSRIs (=Selective serotonin reuptake inhibitors) could be an option. But recently these medicaments have been very disputed. They are not accredited as a treatment for school phobia, but under professional control and included in a combined psychotherapy and educational counseling/family therapy they can be an effective help. Benzodiazepine or other medicines that relieve anxiety (that are used to some extent for adults) should not be applied on children.
The participation and cooperation of the parents is of course inalienable, which is a big challenge for the family. If everybody (children, parents and school) works together, the children with these disorders can be helped effectively.