To dream that you are in pain suggests you are being too hard on yourself about to a situation that was out of your control.

It can also be a reflection of real phsyical pain that carries over from your waking self.