Have more guys than your opponent
Have better weapons than your opponent
Get there first. Pick your terrain.
High ground is good, especially if you have Archers.
Logistics is the key to victory. Things always take longer than you think they will.
Sieges take time. Plan to build your siege engines early.