Apply for a new passport. Before you can travel again, you must renew your expired passport. The same country must issue the new passport that issued the expired passport containing the visa. For example, if Brazil issued you a now-expired passport containing a valid visa, Brazil must also issue the new passport in order for the visa within the old passport to remain valid.
Carry both passports with you during travel. Pack both the old and new passport into your carry-on travel luggage as you will need both documents to board the plane and to enter the foreign country. An easy way to remember this is to rubber band or paper clip the two passports together at the back of the new and front of the old to act as one larger passport.
Give both passports to the Customs and Border Patrol Immigration officer when you arrive at the port of entry. When you enter the United States with a valid passport and an expired passport containing the valid U.S. visa, the customs agent stamps your new passport with the letters "VIOPP," meaning "visa in other passport."