Tomato growing

Hi I currently have three tomato plants and all they do is grow stalks. Two plants have turned brown. I should mention I grow them on a balcony So my questions are: How long does it take for tomatoes to…