hi,thanks for query.Normally foreskin should be able to retract up to base of glans penis
and it is attached to at one place that is known as frenulum
.If you any difficulty in doing this you may have some infection or tight skin.Just visit your primary care
physician and get diagnosed.If there is some infection you need to proper treatment for this.
wishing you good health.