How do I tell if it is the starter switch or the starter motor that has failed?

If you turn the key and hear a single click from the starter relay but the engine does not crank, the fault is likely in the starter motor or its wiring. If you turn the key and hear nothing at all - no click, no relay activation - the fault is more likely in the ignition starter switch, ignition barrel, clutch switch (manual), or neutral safety switch (automatic). A multimeter test of voltage at the starter solenoid while cranking will confirm which side of the circuit is at fault.