help 1997 748 making me crazy

Bike keeps dying I've put new battery,New rectifier and makes a weird noise like a whine then goes off and on while bike sits with no power on