Fertility may be affected by overheating or hypothermia of the testes. Tight pants push the scrotum close to the body, which can lead to overheating.
However, it is not scientifically proven that tight pants alone lead to infertility.