Pain arising from the penis is often a result of a sexually transmitted infection and can be associated with burning, itching, painful urination, discharge, or blood in the urine. Infections or inflammation of the bladder or prostate can also result in penile pain. Balanitis is a term that refers to an infection and inflammation under the foreskin of the penis, and this is another potential cause of penile pain. Trauma, persistent erection (priapism), cancers, and Peyronie's disease (the development of scar tissue within the penis) are other causes. Sickle cell anemia may cause priapism due to blockages of small blood vessels in the penis.
Source: http://www.rxlist.com