Beagles are a challenge to train because of their natural scenthound instincts. Scenthounds were developed to find a trail and then to follow it to the exclusion of everything else and not be distracted no matter what might happen. This means that your Beagle is likely to tune you out totally if his mind is occupied with an interesting sniff! This isn’t him being ‘disobedient’, it is him doing what he was bred for.
Recall is a real challenge for Beagles - and while you should spend as much time as possible teaching your Beagle to come back when you call him, it’s wise not to rely on that! He is an escape artist too so good fencing in vital.
What a Beagle can do is sniff - and so find a reward-based training class who can teach you how to play scent games and exercises with your dog as this will improve the bond between you and give you both something you can excel at.