depends on the sentence its been put in
for example --- the teacher had a hard time correcting the answer sheets means the teacher had to put in a lot of effort for correct the paper
Example 2-- the sugarcane is very hard. Here hard means rigid or solid or hard to break.
Example 3-- the exam was very difficult means exam was tough