If I touch the upper part of my penis it is so much in pain?

Something's wrong. Pain generally is caused by an inflammatory process going on the tissue. Perhaps it is an infection, or abrasion. Full blown inflammation would make the area red (erythema), painful (dolor), swollen (edema) and hot (calor). If there are not of these signs, then perhaps something is underneath the skin causing pain. See a urologist.