When it comes to the 5K, 400-meter repeats are your friend. This workout will teach you to hold your 5K pace even when the going gets tough.
Most solid training plans include a weekly speed workout, often in the form of intervals. But the length of those intervals usually depends on your race distance, training goals, and fitness level.