Strange - if a dog likes its crate that's usually a safe place for life. On the other hand I have heard lots of stories of dogs hating their crates at first sight! My eldest dog doesn't do crates!!
Did anything happen that could possibly have upset him & made him make a bad association with the crate? Might have seemed nothing - a slip, a noise?
One of my dogs doesn't like to go into the kitchen anymore since I set alight a tray of popodoms
So I fed him in there - topping up his food with high value treats like cooked chicken & sausage - same as I did to get him used to his crate.
My best advice would be to chuck a bit of warm, juicy sausage in there & let him get it. Gradually, over a few days get him to associate the crate with sausage but chucking sausage in there at 20 minut4 intervals.
Two things beagles love - other dogs and food.