To lock a bike, simply push the orange knob (on the lock) down to the other end of the lock. When you push the orange knob down, the metal beam should go between the wheel spokes and get caught by the lock.
You should hear a beeping sound when it is locking.
Wait until the sound stops and try to pull the orange knob up.
It should not let you pull up unless you unlock it again via the app.