Usually, children (80-85% of children) have control over their bowels by the age of four years and over their bladders by five years. Your child is just five years. Give him some more time. Try the following:
Curtail his liquid (curry, tea, milk, etc.) after 7 p.m.
Make him urinate before he goes to bed.
Make him urinate again when you go to bed.