The sex chromosomes decide if someone is a boy or a girl. Males have one X and one Y chromosome (XY), while females have two X chromosomes (XX).
When a baby is made, if a sperm with a Y chromosome fertilizes an egg, the baby becomes a boy (XY).
If a sperm with an X chromosome fertilizes the egg, the baby becomes a girl (XX). This is how we get different boys and girls.