What is this?

Over a week ago I had super bad cramps and lower back pain and for 24 hours had brown/pink discharge when I went to the bathroom. I thought for sure it was the start of my period but it stopped and nothing else ever happened. Why does this happen? Anyone know?