You're using analog pins A4 and A7 (int rpm_freq = A4; int speed_freq = A7;) for reading frequency signals with interrupts, but analog pins don't support interrupts on most Arduino boards, including the Nano. That's why your ISR functions never trigger, and both speed and RPM stay zero. Use digital pins that support interrupts, like D2 or D3 on Arduino Nano.
I can confirm that the code works (with the pins changed) on an Arduino Uno R3, with pulses sent from a function generator.
I am using pins D2 and D3, for r.p.m and speed.
Here is an oscilloscope trace showing a frequency of 100Hz (=3000rpm) applied to pin D2, and 71Hz (=100 mph/kmph) applied to D3, together with the results from the serial monitor: