HSG is an X-ray test used to view your reproductive organs. This can help diagnose why you are unable to get pregnant.