The title of "first video game" usually goes to Pong, released by Atari in 1972.
That answer deserves a footnote. Pong is the first video game to become a genuine commercial success, which is why it gets the credit, but earlier experimental titles existed in the 1950s and 60s on university and research computers. Those were demonstrations rather than products.
So if the question is "what was the first video game anyone sold?" the answer is Pong, 1972. If the question is "what was the first thing that could be called a video game?", the history gets considerably murkier.