Fixing Loose Ballusters & Rails

Make a pilot hole through the baluster into the rail. Countersink a wood screw in the hole.
Glue joint and hammer nails through the railing's side