There are as many different ways to answer your question as there are people and needs.
When I needed more to eat earlier today, it affected my thoughts by making it difficult for me to concentrate on the task at hand. My behavior wasn't directly impacted - I kept on working on the project I had begun, but my thinking process wasn't completely focused on the work. After I fulfilled the need by getting a sandwich, I was able to devote all my attention to my work.
Hunger is a fairly straight-forward and easy to define need - we all need nourishment in order to survive. A need that is more difficult to measure, but still important, is a sense of personal esteem. Persons who do not feel loved and needed by others show clinically verifiable symptoms of depression, stress, and other unhealthy conditions due to their unfulfilled needs. Such individuals may think and act in ways that are shaped by their feelings of isolation, loneliness, desertion, uselessness, and so on. In students, this can lead to falling grades, poor attendance, apathy or rebellion toward school and authority figures, and possible use of substances that are perceived as providing a method of escape from the pain of the needs.