You seem to have two blocks but one is outside the Update. Either it all goes in the Update or you need to create a method to use the second part but I doubt you are after that since you are using local variables in the second part.
function Update ()
{
var moveHorizontal = Input.GetAxis("Horizontal");
var moveVertical = Input.GetAxis("Vertical");
var move:Vector3 = new Vector3(moveHorizontal, 0 , moveVertical);
rigidbody.AddForce(move);
}