A man has been sentenced to 25 years in prison after pleading guilty to multiple sex crime charges involving a child.