Is it sensitive on the outside or inside?
Do you have any other symptoms - burning or pain with urination, pain or pressure in your body when you sit, like you may be sitting on something, pain when you poop - anything?
How long has this been happening? Were you ever able to be erect without this pain?
And no, it doesn't sound like an STD.