They are both correct depending on the context.
Needs are often contrasted with wants. People need food, water, and shelter, but they want burgers, Mountain Dew and reddit.com.
Necessary is the same as required.
I have a software business with 5 products. One of the products must be changed in order keep selling it.
The business can survive on 4 products.
Changes to the software are necessary to keep selling it, but changes are NOT needed for the business to survive.
If the business can't survive on 4 products then changes ARE needed and necessary.