Using millis() and if statement to run ultrasonic sensor and servo motors

What have you tried ?
Where are you stuck ?

Take a look at Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE