go to the town then select Manage Town, upgrade militia barracks and put daily defaults to train militia but as the post says before me even then it will take time for it to grow. The easiest way to protect your town after a siege is by recruiting from villages and towns or putt your own infantry/archers into the garrison.