James Cook caught a touchdown pass and ran in two more for a total of three touchdowns on the night, all in the first half, as the Buffalo Bills routed Miami 31-10 on Thursday.