A man has been jailed for five years after pleading guilty to drugs and driving offences across Essex and Suffolk.