Technically, both are grammatically correct, but which one you would use depends on the context.
For example, when telling someone what you did on the weekend, you would say "I played soccer".
However, "I did play soccer" would be used to emphasise it, as if someone said "you didn't play soccer".
Hopefully that's cleared it up for you.