Something like :-
while(digitalRead(pin) != LOW) { } // do nothing
// now the pin is HIGH
When you say data from an input are you talking about serial data, the above applies only to pins.
For serial:-
while(serialAvailable() == 0) { }
data = serialRead();