These articles will help you tell the difference between mail (cocks) and female (hens) of various bird species.
Chestnuts are one of the more difficult birds to sex. There are a few guidelines though that may assist in sexing the birds:
Walter Burgess: Sexing 101 - species # 8 - Lonchura fringilloides - Magpie Mannikin (incorrectly called the Pied Mannikin) :