What.....(you do) when I called you last night?

The correct question formation would be: "What did you do when I called you last night?"