On a lawn tractor, this might be as simple as tracing a handful of wires, but on a UTV or subcompact/compact tractor, it might be more complex, so check your manual for details. We know this from experience, as we had this happen and were unable to start...
Pennsylvania
Philadelphia