you are your brain. You feel pain, therefore your brain feels pain. It doesn't have any pain receptors in the organ of the brain, but it interprets and feels signals from those receptors throughout your body.
Edit: it can also feel sadness, anger, hatred, depression, etc. All of which could be called being in pain. You wouldn't tell a depressed person on a ledge that they're not in pain