Most foxgloves are biennial, so they grow foliage in the first year, flower in the second year and then die. Our British native Digitalis purpurea is mainly biennial, or sometimes a short lived perennial. However, there are some perennial varieties of foxglove that will flower year after year such as Digitalis x mertonensis.
The best spot to grow them is a position with moist but well-drained soil, with full sun, partial sun, or full shade. Depending on the variety, some will have a higher tolerance for shade.