Wells gained 67 yards in all on 17 carries. Rashad Johnson and Greg Toler each ran back a pickoff for a touchdown as the Cardinals (5-9) broke a nine-game losing streak.
Arizona needed the defensive output as Ryan Lindley was held to just 104 passing yards on 14-for-21 efficiency.
The Cardinals managed to snap their long skid one loss short of tying the franchise record of 10 straight setbacks set in 1943.
Matthew Stafford competed 24-of-50 passes for 246 yards, but was intercepted three times overall for the stumbling Lions (4-10), who fell for the sixth straight time.