Hey Paul, if you looked inside an analog distortion pedal you will most likely see IC chips like op-amps or maybe J-fets to simulate more of a tube sound. My old Big Muff from the 70's has discrete transistors overdriven for the fuzz function.
The digital types will use a micro-processor chip for its effects. And likely will have a menu you get to scroll through for the parameters.

---------------Tony