Three sentenced after trying to sneak drugs into prison