South Carolina ranked as one of the nation's unhealthiest states in a new study released by the United Health Foundation.