That all sounds normal! The foreskin won’t usually retract all the way to the base of the penis, because its attachment (the frenulum) won’t often allow for that.
During masturbation or sex with a partner, so long as it glides easily over the head, it should not cause you pain. No kind of sex should push it further than it wants to go. Is it painful with masturbation?
Never doubt that a small group of thoughtful, committed citizens can change the world. Indeed, it is the only thing that ever has. - Margaret Mead