Most freight in the world is diesel (that is diesel electric). For passenger trains, only tourist trains run on non-electric lines - many steam engines, but there are some diesel as well. (Amtrak should take this as an insult)
Most (maybe all?) of metrolink in southern california is not yet electrified or even entirely double tracked. 12m boardings a year before the pandemic so it still gets used.