A noun phrase can be a subject
A noun phrase can be a phrase can be a direct object
A noun phrase can be the object of a preposition
A noun phrase can also be an indirect object
Example of a noun phrase as subject: "The yellow house is for sell"
Example of a noun phrase as a direct object: "I want a scooter"
Example of a noun phrase as a object of a preposition: "Jacob rode on a scooter"
Example of noun phrase in a indirect object: "Linda gave the little girl a candy
Example of another noun phrase "I want to buy that red, mountain bike"
Also! Enjoy I hope this answers your question :)