Please go to a doctor. Almost certainly what you have is balanitis, or inflammation of the penis. You need a proper diagnosis and a prescription-strength anti-inflammatory cream. At a minimum, you need to set your mind at ease about STD's and be able to engage in sexual activity without pain. Meantime, just moisturize, with vaseline or the equivalent.
Take care.
Dr. Rockoff