 Prior to the 14th Amendment, the Bill of Rights did not apply to the states. The Bill of Rights only applied to the federal government and limited what the federal government could do. So if, for example, the First Amendment with Congress shall pass no law respecting the establishment of a religion, both Massachusetts and Connecticut had state-run churches until the early 1800s. They collected taxes and funded churches.