It's definitely a muscle, the corpus cavernosa. The reason erection pills work is because it increases blood flow to the penis engorging the muscle. Same concept as getting a muscle pump. Only different is that an erection is actually the muscle fibers relaxed and full of blood