@FireaLoup You'd use "es" in combination to the word 'das Kind':
"Das Kind hat gesagt, dass es Durst hat." (The child said that they are thirsty.)
Otherwise you'd use "er" or "sie":
"Der Kleine wünscht sich, dass er Gitarrenunterricht erhalten wird." (The little one wishes that he'll be given guitar lessons.)