I suspect that you want:
=SUMPRODUCT(SUMIFS(B2:B7, A2:A7, D2:D3))
That sums values in B2:B7 when the corresponding row in A2:A7 equals the value in D2 __or__ D3.
Your SUMIFS sums values in B2:B7 when the corresponding row in A2:A7 equals the value in D2 __and__ D3. Obviously, a value in A2:A7 cannot equal __both__ at the same time.
My formula above works only if the cells that A2:A7 should equal are contiguous, like D2 and D3. Suppose you want to compare with D2 and F4. More generally:
=SUMPRODUCT(SUMIFS(B2:B7, A2:A7, CHOOSE({1,2}, D2, F4)))