The answer is option D: adverb.
Sometimes is an adverb of frequency, which indicates how often something happens. Adverbs of frequency are usually used for repeated or periodic activities, so they often go with the present simple tense. Other examples of adverbs of frequency are: always, usually, often and never.