Is it haram to take pills to increase the length or thickness of the penis and also to increase the stamina during sex

No, as long as there are no haram ingredients.