Ursula von der Leyen said the continent should be prepared for the impact from the conflict on energy, migration and security.