Problem with curve modifier
It's because the mesh and the curve haven't got the same origin point. Select the curve, press Shift+S-->Cursor to Selected. Then select your mesh and press Shift+S-->Selection to Cursor.