>real-world contracts require some information about the real world
For a blockchain to know about the real world, it does indeed need so-called "oracles".
These are typically trusted external entities (e.g. an actuarial firm) who "inject" signed information into the blockchain that can then be consumed as input by smart contracts "living" in the blockchain.
For example, an Oracle could inject, say every day, signed with their published key pair, the average price of Bitcoin into the Ethereum blockchain, and you could image a family of smart contract paying out if and only if the oracle-published Bitcoin price meets certain conditions.
This solution is - of course - very far from ideal as the information is only as good as the trust you place in these external institutions.
On the other hand, this is not very different than the trust you place in well established institutions such as banks, rating firms, escrows, etc...
What benefit this brings is:
1. Transparency (anyone can check the chain to see what contracts are in place)
2. Automation
3. Complex hierarchical structures where the "building blocks" or "leaf cells" is provided by the oracles.
4. A single failure of the Oracle to inject "truth" into the chain would ruin their rep. for ever.
To compare this to a real world contract, one party that has - say - written a "promise to pay" if certain conditions occur could chose to reneg on that promise, which would lead to lengthy and costly legal proceedings.
This latter scenario can't occur on a blockchain: the cheater would have to bribe the Oracle, a far more complicated affair.
[EDIT]: and as pointed out by another comment, there are federated oracles: a smart contract can use an aggregate of multiple sources that provide the same info and form a consensus based on those.
[EDIT2]: another interesting point is that as more and more financial activity "moves" to the blockchain, the need for Oracles diminishes as the information required by a smart contract becomes native. You can thus view oracles as a temporary onramp of legacy financial info into the blockchain.