I would start with a stationary sun and a single moving planet.
In the planet's _physics_process() method, implement the motion equation to make the planet orbit around the sun. The motion equation should be easy to find on the web, or you could ask ChatGPT.
You could use Sprite2D or Area2D nodes for the sun and the planet. (You said 3D, but I would start with 2D to keep it simple, and change to 3D after you get a simple model working.)
Instead of explicitly specifying the planet's motion, you could try applying a force to a RigidBody2D to simulate the planet's gravitational attraction to the sun. I don't know if Godot's physics is accurate enough, but it shouldn't be hard to test as an experiment.
No, don't do that. We need the sun. 😢