Hackworth has it right, but I love me some Comprehensive Rules:
112.6. Abilities of an instant or sorcery spell usually function only while that object is on the stack. Abilities of all other objects usually function only while that object is on the battlefield. The exceptions are as follows:
112.6a to 112.6n then specify the exceptions to this rule, including:
112.6k An ability whose cost or effect specifies that it moves the object it's on out of a particular zone functions only in that zone, unless that ability's trigger condition, or a previous part of that ability's cost or effect, specifies that the object is put into that zone.
Example: Necrosavant says "{3}{B}{B}, Sacrifice a creature: Return Necrosavant from your graveyard to the battlefield. Activate this ability only during your upkeep." A player may activate this ability only if Necrosavant is in his or her graveyard.