Once you have one side of the flat tire open you can pull the valve stem out of the hole in the rim and then pull the tube out. After the tube is out run your hand around the inside of the flat tire to feel for sharp points or other irregularities that could cause a flat.
Index: How to Fix a Flat Tire - Fix Your Own Flat Mountain Bike Tire