Software serial is digital, so you cannot use an A6 or A7. It works on 11 and 12 because those are digital pins. A7 can be used as a voltage meter because it is an analog input only. The pinMode function will do nothing to that pin because pinMode only applies to digital.