To dream that you are in pain suggests that you are being too hard on yourself, especially if a situation was out of your control. The dream may also be a true reflection of actual pain that exists somewhere in your body. Dreams can reveal and warn about health problems. Consider where the pain is for additional significance. If the pain is in your neck, then the dream may be a metaphor that you are literally being a “pain in the neck”.
To dream that you are inflicting pain to yourself indicates that you are experiencing some overwhelming turmoil or problems in your waking life. You are trying to disconnect yourself from your reality by focusing on the pain that you inflicted to yourself.