Warranties on other products appear on the package or in those package inserts we so casually throw away. New things you buy should work. If an item does not, take it back to the place where you bought it. Do this even if the package insert says, after you retrieve it and uncrumple it, that you must return the goods to the manufacturer. Most of the time, the merchant will exchange the item for the same model that does work, or refund your money.
Most merchants care about their reputations in the business community.
Those who do not usually do not stay in business very long. If the merchant refuses to give you an exchange or refund, before you sue, make that call to your local or state consumer affairs office for direction. If you still get no satisfaction, you can sue the seller for your lost purchase price. Remember, the contract is between you and the merchant. You promised to pay money for the goods.