to increase watts

Question: I would like to improve my performance, but I'm not quite certain how. There is a road which I always test my numbers on; it's a medium hill of only about 2 kilometers. I start out real strong but the last 100 meters or so, my legs sort of slow down on me. Must I improve resistance, or endurance, or strength, or all 3?
Thank you in advance