Man jailed for possessing firearm and dangerous driving