Do you need small signal gain? first set the correct operating point of the circuit, then apply an AC voltage source to the input with unit amplitude and zero phase (Vin In_node 0 AC 1 0), run the .ac analysis and plot the dB and Phase of the output.
ngspice user manual:
15.3.1 .AC: Small-Signal AC Analysis