HSG is commonly performed to investigate female infertility, blocked fallopian tubes, recurrent miscarriages, uterine abnormalities, uterine adhesions (Asherman's syndrome), congenital uterine anomalies, uterine polyps, submucosal fibroids, and other conditions affecting the reproductive system.