To activate a dial pad in Teams you will need to have deployed voice.
The most important part of deploying voice in Teams is to choose the method that works for you: Calling Plan, Operator Connect or Direct Routing. Depending on which method you choose, you will also have to include some additional Microsoft licensing.