Preheat the oven to 350°F (175°C).
In a skillet, cook the ground beef with chopped onion and minced garlic until browned.
Add black beans, corn, enchilada sauce, cumin, chili powder, and salt to the skillet. Stir to combine.
In a baking dish, layer the corn tortillas, followed by half of the beef mixture, and half of the cheddar cheese. Repeat the layers.
Top with remaining cheddar cheese.
Bake in the preheated oven for 30 minutes until cheese is melted and bubbly.
Serve hot, garnished with sour cream.