Spotting and pain

This is my second cycle having pelvic pain and spotting especially after sex. Low back pain. I had my period early last week and the pain was nearly debilitating I could not even wear a tampon...