Well, like DayGamer said, you aren't detecting for collision and there is no loop. So far, I don't see anything "wrong" with your code but it is simply incomplete.
Here is a small snippet which demonstrates basic collision detection
sync on : sync rate 60
` make cubes
make object cube 1,100
make object cube 2,100
` position cubes
position object 1, -500, 0, 0
position object 2, 500, 0, 0
` position and point camera
position camera 0, 0, 0, -700
point camera 0, 0, 0, 0
` variable to allow cube 1 to move
x as integer
x = object position x(1)
do
` move cube left and right
if rightkey()=1 then inc x, 5
if leftkey()=1 then dec x, 5
` position the cube
position object 1, x, 0, 0
` Detect for collision
if object collision(1,2)=1 then text 0, 0, "Collision!!!" ` if collision, say something
` refresh
sync
loop
If there is anything you don't understand feel free to ask
A clever person solves a problem, a wise person avoids it - Albert Einstein