If North Dakota is republican, why has that state only sent Democrats to the U.S. Senate and House since 1993?
Partly pork, partly because Democrats often better campaigners, and also because of periodic farm rebellions against the political establishment.