First of all, the economy class cabin needs to be overbooked for upgrades to happen.
If there are seats left in economy class, there will be no upgrades.
Second, your ticket fare class is a big factor when it comes to upgrades.
The higher the fare class of your ticket, the better the chance of an upgrade.