Heat oven to 375°F. Lightly grease a 9x13-inch baking dish.
Warm oil in a large skillet over medium heat. Soften onion for 4 minutes.
Stir in garlic and cook until fragrant, about 30 seconds.
Add ground beef. Cook, breaking it up, until browned. Drain excess fat.
Season with taco seasoning, salt, and pepper. Toast spices for 30 seconds.
Pour in tomatoes, beans, corn, and 12 oz enchilada sauce. Simmer 5–7 minutes to thicken slightly.
Cut tortillas into strips or wedges for easier layering.
Spread a thin layer of sauce in the dish. Layer tortillas, half the beef mixture, and one-third of the cheese.
Repeat layers once. Top with remaining tortillas, the last 8 oz sauce, and all remaining cheese.
Cover loosely with foil. Bake 15 minutes; uncover and bake 10–12 minutes until bubbling and golden.
Rest 10 minutes. Sprinkle cilantro and serve with sour cream.