Air pump motor not working

Yes I am pretty sure that the control signals from the Arduino to the L298N needs a reference voltage in order for them to work. The ground connection basically is that reference volatge.