If one tire is flat and the other is not and they have the same type of tires/tubes, then there is likely a slow leak in the tube. Pump it up some more and listen harder. If that doesn't work, dip it in water and look for bubbles. The slow leak was likely caused by a sharp edge somewhere in your tire or rim, so replacing the tube without fixing the problem will just cause another flat.