When a car has a mad mass airflow sensor the cars engine will run rough, idle rough, hesitate upon acceleration, run rich and blow black smoke out the exhaust, use more fuel, loss of engine power etc.
A car will still run even when the MAF "Mass Airflow Sensor" is unplugged.
But if you unplug the MAF sensor on your car then the car will not run correctly and you'll use more fuel and the car may stall, idle rough, run rich etc.
If your car is acting up and you unplug the MAF sensor temporarily and it runs and idles better when the MAF sensor is unplugged then the MAF sensor is bad and needs replaced.
Replacing the MAF sensor is a pretty easy job as long as you have the correct tools and know where it's at.
You can search Google for the location of your MAF sensor on your car and it will show you where the MAF sensor is and how to replace it.
Or if you have a shop replace the MAF sensor it may cost you $50.00 to $150.00 depending on the make and model of car.