Bleeding after intercourse—pain

For 3 days I’ve bled only after sex and have terrible stomach and back pain. What does that mean?