IUD help

I have and IUD and always got my period. Then No period for the last 4 months. I randomaly got it this weekend and I was in awful pain, miserable and depressed. It was SO awful. Now it has passed and I feel better. Is this normal or is there something wrong.