Sounds to me like a scalp injury. From what I've heard, they can cause a lot of pain. You might be having pain from a muscle spasm in the connective tissue between your skin and skull. It might have been inflamed by some hematoma, or a damaged nerve.