Can't upload sketches into arduino. reinstalled the IDE and tried other board.

If you were able to upload a sketch once, but not anymore, sounds like you burned out whichever Arduino you have with whatever you were doing.

.