camera transform doesnt change

hi, i dont understand why this is nt working…wasted hours.

i just wanted to change camera transform and it doesnt move .help

void Update()
{
transform.position += Vector3.up;
print(transform.position);
}

void Update()
{
transform.position = Vector3.MoveTowards(transform.position, new Vector3(x, y, z), Time.deltaTime);
}

Your question does not have a prospectus description ,But we can help you.
if you follow camera player as well then You can do this
Reference My Scrip

 void FixedUpdate()
        {
             transform.position = new Vector3(0f,transform.position.y ,0);
             //change your movement direction            
        }

using UnityEngine;
using System.Collections;

public class CameraFollow : MonoBehaviour
{

    [SerializeField]
    Transform player;

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    void FixedUpdate()
    {
         transform.position = new Vector3(0f,player.transform.position.y , 0f);
    }
}