Ayala tied a career-high with 23 points, but the Terps failed to make a field goal in the last 7:32 of the game.
Ayala is a steadying presence for an inconsistent Maryland offense.
Ayala and Wiggins combined for 25 of the Terps' 37 points in the second half.
Campbell led the Terps with 10.5 sacks per game in 2020.
Brian Braswell is also joining Mike Locksley's staff as the Terps' new offensive line coach.
Offensive line coach John Reagan has also left College Park.
Lewis is the highest-rated inside linebacker in the 2021 class.
The Terps also secured wide receiver Marcus Fleming as a transfer from Nebraska.
Funk rushed for 516 yards and three touchdowns this season.