A 24-year-old Salem man has been sentenced to three years in prison after he failed to complete the drug court program.