In most cases, both tenses are acceptable:
There are some situations in which one of the tenses sounds better.
To emphasise duration of an action, use the continuous form:
To emphasise result of an action, use the simple form:
The simple form never and ever:
The continuous form how long, since and for: