I just returned from vacation in England where I availed myself to the jurisdiction of a monarch. If I committed a crime or breached a contract, the issue would have been brought before a Crown Court.
Similarly, in the United States, people and corporations are not subject to the courts of states they have no contacts with. However, making contacts with another state can subject you to the jurisdiction of their courts. This might include doing business in that state. It depends from state to state because each state has its own laws regulating which out-of-state entities are subject to their courts, commonly known as the long-arm statute. However, at the very least is that there must be ‘minimum contacts’ with the state seeking jurisdiction. In summary, when doing business outside of your state, you should consult an attorney to determine whether you may be hailed into court in that state.