If the fish are less than 6-8 months old or under silver dollar body size, they will be very difficult to tell sexes. There are some subtle physical characteristics that can be seen by a trained eye or once their breeding tubes are exposed they can be sexed.
You can find just about anything you need to know about breeding them in a thread titled "Wigglers at last!!!!" in the breeding forum.