What do you mean exactly using transform class?
Do you mean this:
public speed = 5;
transform.Translate (0, 0, 5 * Tim.deltaTime)
which will move GameObject in z direction by 5 per second, or
transform.Rotate ()...... or
rigidbody.velocity = transform.right * 10;
I suppose you want to use transform.Translate and to move your GameObject on x and y axis, in that case you just use Translate action and you will get that.
Cheers!!!