How can I move an object 2 times with different directions?

I’m trying to move a platform to make that doing a specific route and make it back. I tried with:

transform.Translate([current position], [position to reach], [step]);
transform.Translate([position reached], [original position], [step]);

The problem is that Unity don’t make the platform move, and I don’t know for what reason. Considering that I’ve used Vectors to indicate the position, how can i make it works, or at least what else can I use?

Something like this?

Vector3 position1; // start position
Vector3 position2; // target position

transform.position = Vector3.Lerp(position1, position2, Mathf.PingPong(elapsedTime / 2.0f, 1f));