A Tennessee state representative running for governor said he would work to ban mosques and what he described as “pagan religions” — including Islam, Buddhism and Hinduism — if elected, arguing the First Amendment does not prevent states from doing so.