- With a cable: plug it in. That's all.
- Wireless: put the controller in pairing mode (see its instructions). Open System Settings from Search, click Bluetooth, then Pair a New Device, and pick the controller.
- Open your game. Steam sets up most controllers by itself.
Use a game controller
Plug it in, or pair it under Bluetooth in System Settings.