There are certain conditions that can affect the shape, size and function of the penis and testicles. Such disorders can be painful and affect sexual function of the man, interfering with his ability to reproduce naturally. Most of these conditions can be treated through surgery.