You must accumulate experience to progress to higher levels. Each individual attack, whether it's extracting wood, stones, minerals or creating goods, will give you experience. Attacking enemies, animals, or being attacked does not give you experience. No level is gained by driving a car, sailing, looting or breaking dropped things.