Array not following curve
Your cube must have the same position as the curve (select the curve, hit Shift+S and Place 3D cursor to curve's origin, then select the cube and again Shift+S to move Selection to 3D cursor).
Also, you must apply transformations on the cube so it can properly fit the curve (Ctrl+A).
I have updated and attached your file so you can look at it.