One of the most important processes an actor must go through is learning their lines. It takes practice, dedication and patience.
There is no right or wrong way but more importantly than remembering the lines is understanding them, first and foremost.
Understand the words what Shakespeare is saying to his audience, through you, his instrument of nature and complete the challenge! Good Luck, friend!