The rail from the garage door should be lubricated with White Lithium Grease, whether it's a chain or a screw type. Run a bead of grease along the top of it, then run the garage door up and down a few times.
The wheels, track and spring should be lubricated with your favorite lubricant oil -- not WD-40, which is a cleaner and penetrant, not a lube -- but an actual lubricant. I think I usually use silicone liquid wrench.
If the garage door still does not operate, check the alignment of your tracks to make sure they aren't binding. The spring might need to be re-tensioned, which is NOT (in my opinion) a DIY project.