How to record from microphone to wav file ?

Hello ,
         Any component for record sound from microphone and save to .wav
file ?
Any sound format that smaller than .wav  ? and how can I record to this
format ?
Please help me  , Thank you in advance .
                                        hope you understand my English , I'm
Thai student :)

Pat