You have to keep telling yourself that you're not hurt or jealous. If you tell yourself enough, you'll start to believe it, then you will eventually be able to get over the past.
You hurt yourself (or someone else hurts you) and the nerves pass the information to your brain, explaining you should be hurting, then the brain sends back pain through the nerves the the hurt area,...