Is it possible to say: I worked two months in a bank. I mean without saying " for" before "two months"?
Yes, there are many short simple temporal situations in which prepositions may be omitted:
I'll see you Tuesday.
I'm leaving next year.