If, after puberty, you can’t easily retract your foreskin over the head of your dick (it also shouldn’t hurt), you have a very unhygienic problem called phimosis.
It can be self cured with regular stretching but sometimes you will need a doctor to prescribe a steroid cream to assist with this, the worst cases can require circumcision.