Fist you should encrypt your wallet:
bitcoin-cli encryptwallet 'yourpassphrasehere'
After that your bitcoind must synchronize with network(get all blocks)
Run command:
bitcoin-cli getinfo
and see how many blocks are synchronized:
{
  "version": 130200,
  "protocolversion": 70015,
  "walletversion": 60000,
  "balance": 0.00455069,
  "blocks": 451571,    < ------------------
  "timeoffset": 0,
  "connections": 1,
  "proxy": "127.0.0.1:9050",
  "difficulty": 392963262344.3704,
  "testnet": false,
  "keypoololdest": 1485982350,
  "keypoolsize": 87610,
  "unlocked_until": 0,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}