I'm not sure about US law, but generally
- criminal offenses are between an individual and the state/society, and usually involve criminal intent in addition to the criminal action
- civil offenses are between individuals, and regulatory rules are in this category
Also, usually the higher level jurisdictions get to decide what counts as a crime, while lower level ones (ex. A municipality) can only add civil rules.
With traffic tickets
- there's no criminal intent
- usually managed by a municipality